static function getItems($ids = null, $model = false) { if (empty($model)) { AImporter::model('vehicles'); $model = new BookproModelVehicles(); } return $model->getItemByIds($ids); }
public function display($tpl = null) { AImporter::model('vehicles'); $model = new BookproModelVehicles(); $this->items = $model->getTypes(); if (count($error = $this->get('Errors'))) { JError::raiseError(500, implode("\n", $errors)); return false; } $this->addToolbar(); parent::display($tpl); }