/** * * Loads this params object with an array of data using support methods. * * @param array $data The data to load. * * @return Solar_Sql_Model_Params_Eager * * @see _loadOne() * * @see _loadTwo() * */ protected function _load($data) { parent::_load($data); $this->_loadOne($data, array('merge', 'order', 'cols_prefix' => 'colsPrefix', 'join_type' => 'joinType', 'join_flag' => 'joinFlag', 'join_only' => 'joinOnly', 'native_by' => 'nativeBy', 'wherein_max' => 'whereinMax')); $this->_loadTwo($data, array('conditions' => 'addCondition')); }
/** * * Loads this params object with an array of data using support methods. * * @param array $data The data to load. * * @return Solar_Sql_Model_Params_Fetch * * @see _loadOne() * * @see _loadTwo() * */ protected function _load($data) { parent::_load($data); $this->_loadOne($data, array('cache', 'cache_key' => 'cacheKey', 'count_pages' => 'countPages', 'distinct', 'group', 'order', 'page', 'paging')); $this->_loadTwo($data, array('having', 'where')); // limit() is a special case if (!empty($data['limit'])) { $this->limit($data['limit']); } // join() is a special case if (!empty($data['join'])) { $this->join($data['join']); } // bind() is a special case too if (!empty($data['bind'])) { $this->bind($data['bind']); } }