Ejemplo n.º 1
0
 /**
  * Constructor.
  *
  * @param    array    An optional associative array of configuration settings.
  * @see      JController
  */
 public function __construct($config = array())
 {
     $this->service = AKHelper::_('api.getSDK', $this->option);
     $config['filter_fields'] = array('filter_order_Dir', 'filter_order', '*');
     $config['filter_fields'] = AKHelper::_('query.mergeAPIFilterFields', $config['filter_fields'], $this->request_item);
     parent::__construct($config);
 }
Ejemplo n.º 2
0
 /**
  * Set search condition to support multiple search inputs.
  * 
  * @param   array			$search	Search fields and values.
  * @param   JDatabaseQuery	$q		The query object.
  * @param   array			$ignore	An array for ignore fields.
  *
  * @return  JDatabaseQuery    
  */
 public function searchCondition($search, $q = null, $ignore = array())
 {
     // Set ignore fields, and you can set yourself search later.
     $ignore[] = '*';
     return parent::searchCondition($search, $q, $ignore);
 }
Ejemplo n.º 3
0
 /**
  * Method to get list page filter form.
  *
  * @return    object    JForm object.
  * @since    2.5
  */
 public function getFilter()
 {
     $filter = parent::getFilter();
     return $filter;
 }
Ejemplo n.º 4
0
 /**
  * Method to get a store id based on model configuration state.
  *
  * This is necessary because the model is used by the component and
  * different modules that might need different sets of data or different
  * ordering requirements.
  *
  * @param    string        $id    A prefix for the store id.
  * @return    string        A store id.
  * @since    1.6
  */
 protected function getStoreId($id = '')
 {
     // Compile the store id.
     $id .= ':' . json_encode($this->getState());
     return parent::getStoreId($id);
 }