[Solar-svn] Revision 3015

pmjones at solarphp.com pmjones at solarphp.com
Mon Mar 17 23:12:42 CDT 2008


Solar/App/Bookmarks/View/*: using new addProcess() and addProcessGroup() methods.


Modified: trunk/Solar/App/Bookmarks/View/add.php
===================================================================
--- trunk/Solar/App/Bookmarks/View/add.php	2008-03-18 02:40:16 UTC (rev 3014)
+++ trunk/Solar/App/Bookmarks/View/add.php	2008-03-18 04:12:42 UTC (rev 3015)
@@ -1,7 +1,7 @@
 <?php
 /**
  * 
- * Solar_View template for editing a bookmark.
+ * Solar_View template for adding a bookmark.
  * 
  * @category Solar
  * 
@@ -23,8 +23,7 @@
 <p>[ <?php echo $this->anchor($this->backlink, 'BACKLINK') ?> ]</p>
 
 <?php echo $this->form()
-    ->auto($this->formdata)
-    ->hidden(array('name' => 'process', 'value' => $this->getTextRaw('PROCESS_SAVE')))
-    ->submit(array('name' => 'process', 'value' => $this->getTextRaw('PROCESS_SAVE')))
-    ->submit(array('name' => 'process', 'value' => $this->getTextRaw('PROCESS_CANCEL')))
-    ->fetch();
+                ->auto($this->formdata)
+                ->addProcess('save')
+                ->addProcess('cancel')
+                ->fetch();

Modified: trunk/Solar/App/Bookmarks/View/edit.php
===================================================================
--- trunk/Solar/App/Bookmarks/View/edit.php	2008-03-18 02:40:16 UTC (rev 3014)
+++ trunk/Solar/App/Bookmarks/View/edit.php	2008-03-18 04:12:42 UTC (rev 3015)
@@ -29,12 +29,11 @@
     
     echo $this->form(array('id' => 'form-bookmark'))
               ->auto($this->formdata)
-              ->hidden(array('name' => 'process', 'value' => $this->getTextRaw('PROCESS_SAVE')))
-              ->beginGroup()
-              ->submit(array('name' => 'process', 'value' => $this->getTextRaw('PROCESS_SAVE')))
-              ->submit(array('name' => 'process', 'value' => $this->getTextRaw('PROCESS_CANCEL')))
-              ->submit(array('name' => 'process', 'value' => $this->getTextRaw('PROCESS_DELETE'), 'attribs' => $attribs))
-              ->endGroup()
+              ->addProcessGroup(array(
+                  'save',
+                  'cancel',
+                  'delete' => array('attribs' => $attribs)
+              ))
               ->fetch();
     
     // javascript highlight effects

Modified: trunk/Solar/App/Bookmarks/View/quick.php
===================================================================
--- trunk/Solar/App/Bookmarks/View/quick.php	2008-03-18 02:40:16 UTC (rev 3014)
+++ trunk/Solar/App/Bookmarks/View/quick.php	2008-03-18 04:12:42 UTC (rev 3015)
@@ -29,6 +29,6 @@
     
     echo $this->form()
               ->auto($this->formdata)
-              ->hidden(array('name' => 'process', 'value' => $this->getTextRaw('PROCESS_SAVE')))
-              ->submit(array('name' => 'process', 'value' => $this->getTextRaw('PROCESS_SAVE')))
-              ->fetch();
\ No newline at end of file
+              ->addProcess('save')
+              ->fetch();
+              
\ No newline at end of file




More information about the Solar-svn mailing list