'x-block', 'model_file' => 'xblock'); /** * put your comment there... * */ public function __construct() { parent::__construct(); // Actions! $this->registryAction('getBlockBy'); } /** * Query single block based on the provided criteria! * */ public function getBlockByAction() { // Initialize. $returns = array_flip($_GET['returns']); // Set inputs. $inputs =& $this->model->inputs; $inputs['filter'] = $_GET['filter']; // Query Block. $this->response = array_intersect_key((array) $this->model->getBlockBy(), $returns); } } // End class.