Changeset 3071

Show
Ignore:
Timestamp:
07/11/2008 10:33:14 AM (5 months ago)
Author:
Shadowhand
Message:

Changes to ORM:

  • Added select_list() method, copied from old ORM
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/system/libraries/ORM.php

    r3070 r3071  
    449449 
    450450        /** 
     451         * Creates a key/value array from all of the objects available. Uses find_all 
     452         * to find the objects. 
     453         * 
     454         * @param   string  key column 
     455         * @param   string  value column 
     456         * @return  array 
     457         */ 
     458        public function select_list($key, $val) 
     459        { 
     460                // Return a select list from the results 
     461                return $this->select($key, $val)->find_all()->select_list($key, $val); 
     462        } 
     463 
     464        /** 
    451465         * Validates the current object. This method should generally be called 
    452466         * via the model, after the $_POST Validation object has been created.