Esempio n. 1
0
 /**
  * Get Resource Data for Content
  *
  * @return  object
  * @since   1.0.0
  */
 public function getResource()
 {
     $model_name = 'Molajo//' . $this->model_type . '//' . $this->model_name . '//Content.xml';
     $this->setQueryController($model_name);
     $this->setQueryControllerDefaults($process_events = 1, $query_object = 'item', $get_customfields = 1, $use_special_joins = 1, $use_pagination = 0, $check_view_level_access = 1, $get_item_children = 0);
     $this->query->where('column', 'catalog.sef_request', '=', 'string', $this->path);
     $this->getResourceData($this->resource_output->data->extension_instance_id, $this->resource_output->data->catalog_type_id, $this->model_name);
     $this->resource_output->catalog_type_id = $this->resource_output->data->catalog_type_id;
     return parent::getResource();
 }
Esempio n. 2
0
 /**
  * Process Query Output
  *
  * @param   string $resource_name
  *
  * @return  object
  * @since   1.0.0
  */
 public function processQueryOutput($resource_name)
 {
     if ((int) $this->resource_output->parameters->theme_id === 0) {
         $this->resource_output->parameters->theme_id = $this->default_theme_id;
     }
     $this->resource_output->catalog_type_id = $this->resource_output->parameters->criteria_catalog_type_id;
     //        $this->resource_output->extension_instance_id
     //                                                = $this->resource_output->parameters->criteria_extension_instance_id;
     $this->resource_output->model_name = $resource_name;
     return parent::getResource();
 }
Esempio n. 3
0
 /**
  * Get Resource Data for Extension
  *
  * @return  object
  * @since   1.0.0
  */
 public function getResource()
 {
     $model = 'Molajo//' . $this->model_type . '//' . $this->model_name . '//Extension.xml';
     $this->setQueryController($model);
     $this->setQueryControllerDefaults($process_events = 1, $query_object = 'item', $get_customfields = 1, $use_special_joins = 1, $use_pagination = 0, $check_view_level_access = 1, $get_item_children = 0);
     $catalog_type_id = (int) $this->query->getModelRegistry('criteria_catalog_type_id', 0);
     $id = (int) $this->query->getModelRegistry('primary_key_value', 0);
     $prefix = $this->query->getModelRegistry('primary_prefix', 'a');
     $this->query->where('column', $prefix . '.catalog_type_id', '=', 'integer', $catalog_type_id);
     $this->query->where('column', $prefix . '.id', '=', 'integer', $id);
     $this->getResourceData($this->resource_output->data->id, $this->resource_output->data->catalog_type_id, $this->model_name);
     return parent::getResource();
 }