Show
Ignore:
Timestamp:
12/04/2007 08:17:52 PM (13 months ago)
Author:
Shadowhand
Message:

Changes to core:

  • Pagination now includes the query string, to allow GET-driven searches with paged results
  • ORM->delete(ALL) now respects where() calls
  • Form_Model can now be constructed like this: $form = new Form_Model($title, $action, $inputs), to bypass chained method calls.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/models/form.php

    r1417 r1419  
    77 
    88        // Title attribute 
    9         protected $title  = ''; 
     9        protected $title = ''; 
    1010 
    1111        // Input data 
     
    1818        protected $status; 
    1919 
    20         public function __construct() 
     20        public function __construct($title = NULL, $action = NULL, $inputs = NULL) 
    2121        { 
    2222                // Uncomment the following line if you want the database loaded: 
     
    2525                // Load validation 
    2626                $this->validation = new Validation(); 
     27 
     28                // Set title 
     29                is_null($title) or $this->title($title); 
     30 
     31                // Set action 
     32                is_null($action) or $this->action($action); 
     33 
     34                // Set inputs 
     35                is_array($inputs) and $this->inputs($inputs); 
    2736        } 
    2837