コード例 #1
0
 /**
  * Constructor
  *
  * @access	public
  * @param	array	$config	An optional associative array of configuration settings.
  * @return	void
  */
 public function __construct($config = array())
 {
     //Define the sortables fields (in lists)
     if (empty($config['filter_fields'])) {
         $config['filter_fields'] = array('ordering', 'a.ordering');
     }
     parent::__construct($config);
 }
コード例 #2
0
ファイル: favourites.php プロジェクト: gwtrains/comRTiPrint
 /**
  * Constructor
  *
  * @access	public
  * @param	array	$config	An optional associative array of configuration settings.
  * @return	void
  */
 public function __construct($config = array())
 {
     //Define the sortables fields (in lists)
     if (empty($config['filter_fields'])) {
         $config['filter_fields'] = array('_printer_name', '_printer_.name', '_printer_printer_model_name', '_printer_printer_model_.name', '_printer_building_building', '_printer_building_.building', '_printer_building_town_town', '_printer_building_town_.town', 'ordering', 'a.ordering');
     }
     //Define the filterable fields
     $this->set('filter_vars', array('published' => 'varchar', 'created_by' => 'cmd', 'sortTable' => 'cmd', 'directionTable' => 'cmd', 'limit' => 'cmd'));
     parent::__construct($config);
 }
コード例 #3
0
ファイル: changelogs.php プロジェクト: gwtrains/comRTiPrint
 /**
  * Constructor
  *
  * @access	public
  * @param	array	$config	An optional associative array of configuration settings.
  * @return	void
  */
 public function __construct($config = array())
 {
     //Define the sortables fields (in lists)
     if (empty($config['filter_fields'])) {
         $config['filter_fields'] = array('creation_date', 'a.creation_date', 'version', 'a.version', 'summary', 'a.summary', 'ordering', 'a.ordering');
     }
     //Define the filterable fields
     $this->set('filter_vars', array('published' => 'varchar'));
     parent::__construct($config);
 }
コード例 #4
0
ファイル: printermdls.php プロジェクト: gwtrains/comRTiPrint
 /**
  * Constructor
  *
  * @access	public
  * @param	array	$config	An optional associative array of configuration settings.
  * @return	void
  */
 public function __construct($config = array())
 {
     //Define the sortables fields (in lists)
     if (empty($config['filter_fields'])) {
         $config['filter_fields'] = array('ordering', 'a.ordering');
     }
     //Define the filterable fields
     $this->set('filter_vars', array('published' => 'varchar', 'manufacturer' => 'cmd'));
     parent::__construct($config);
 }
コード例 #5
0
ファイル: buildings.php プロジェクト: gwtrains/comRTiPrint
 /**
  * Constructor
  *
  * @access	public
  * @param	array	$config	An optional associative array of configuration settings.
  * @return	void
  */
 public function __construct($config = array())
 {
     //Define the sortables fields (in lists)
     if (empty($config['filter_fields'])) {
         $config['filter_fields'] = array('building', 'a.building', 'ordering', 'a.ordering');
     }
     //Define the filterable fields
     $this->set('filter_vars', array('published' => 'varchar', 'sortTable' => 'cmd', 'directionTable' => 'cmd', 'limit' => 'cmd', 'town' => 'cmd'));
     //Define the searchable fields
     $this->set('search_vars', array('search' => 'string'));
     parent::__construct($config);
 }
コード例 #6
0
 /**
  * Constructor
  *
  * @access	public
  * @param	array	$config	An optional associative array of configuration settings.
  * @return	void
  */
 public function __construct($config = array())
 {
     //Define the sortables fields (in lists)
     if (empty($config['filter_fields'])) {
         $config['filter_fields'] = array('name', 'a.name', '_created_by_name', '_created_by_.name', 'creation_date', 'a.creation_date', 'modification_date', 'a.modification_date', 'published', 'a.published', 'ordering', 'a.ordering');
     }
     //Define the filterable fields
     $this->set('filter_vars', array('published' => 'cmd', 'sortTable' => 'cmd', 'directionTable' => 'cmd', 'limit' => 'cmd'));
     //Define the searchable fields
     $this->set('search_vars', array('search' => 'string', 'search_1' => 'string'));
     parent::__construct($config);
 }