示例#1
0
 public function _init($init = null, $where = null, $orderBy = null, $limitOffset = -1, $limitNumRows = -1, $assocKey = null)
 {
     static $initTypes = array('D'   => self::GET_FROM_DB,
                               'G'   => self::GET_FROM_GET,
                               'P'   => self::GET_FROM_POST,
                               'R'   => self::GET_FROM_REQUEST,
                               'S'   => self::GET_FROM_SESSION,
                               'V'   => self::GET_FROM_VALIDATION_FAILED);
     if (is_string($init) && array_key_exists($init, $initTypes)) {
         $init = $initTypes[$init];
     }
     return parent::_init($init, $where, $orderBy, $limitOffset, $limitNumRows, $assocKey);
 }