コード例 #1
0
ファイル: searchitems.php プロジェクト: Jougito/DynWeb
 /**
  * Constructor.
  *
  * @param   array  $config  An optional associative array of configuration settings.
  *
  * @see     JController
  * @since   1.6
  */
 public function __construct($config = array())
 {
     if (empty($config['filter_fields'])) {
         $config['filter_fields'] = array('a.itemid', 'itemid', 'a.name', 'name', 'a.itemlevel', 'itemlevel', 'a.requiredlevel', 'requiredlevel', 'a.class', 'class', 'a.InventoryType', 'InventoryType', 'a.Quality', 'Quality', 'a.AllowableClass', 'AllowableClass');
     }
     //echo "Construct JModel <br>";
     //echo "__state_set=" . $this->__state_set."<br>";
     parent::__construct($config);
     $db = JTrinityCoreDBHelper::getDB();
     // I have to set the DB object for the model, if not gets the joomla db
     parent::setDbo($db);
 }