Changeset 1419
- Timestamp:
- 12/04/2007 08:17:52 PM (10 months ago)
- Location:
- trunk/system
- Files:
-
- 3 modified
-
libraries/ORM.php (modified) (2 diffs)
-
libraries/Pagination.php (modified) (1 diff)
-
models/form.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/system/libraries/ORM.php
r1366 r1419 394 394 $this->select = TRUE; 395 395 } 396 elseif (preg_match('/ like|regex/', $method))396 elseif (preg_match('/where|like|regex/', $method)) 397 397 { 398 398 $this->where = TRUE; … … 520 520 { 521 521 // WHERE for ALL: "WHERE 1" (h4x) 522 $where = TRUE;522 $where = ($this->where === TRUE) ? NULL : TRUE; 523 523 } 524 524 else -
trunk/system/libraries/Pagination.php
r1402 r1419 93 93 } 94 94 95 // Create a generic base_url with {page} placeholder95 // Create a generic base_url with {page} and {query_string} placeholders 96 96 $this->base_url[$this->uri_segment - 1] = '{page}'; 97 $this->base_url = url::site(implode('/', $this->base_url)) ;97 $this->base_url = url::site(implode('/', $this->base_url)).Router::$query_string; 98 98 } 99 99 -
trunk/system/models/form.php
r1417 r1419 7 7 8 8 // Title attribute 9 protected $title = '';9 protected $title = ''; 10 10 11 11 // Input data … … 18 18 protected $status; 19 19 20 public function __construct( )20 public function __construct($title = NULL, $action = NULL, $inputs = NULL) 21 21 { 22 22 // Uncomment the following line if you want the database loaded: … … 25 25 // Load validation 26 26 $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); 27 36 } 28 37
