@param array * @return integer */ public static function count($arrOptions) { if(empty($arrOptions)) { return -1; } return \PCT\CustomElements\Plugins\CustomCatalog\Helper\QueryBuilder::getInstance()->count($arrOptions); } /** * Call the fetch method for a sql query * @param array * @return object */ public static function fetch($arrOptions) { return \PCT\CustomElements\Plugins\CustomCatalog\Helper\QueryBuilder::getInstance()->fetch($arrOptions); } /** * Simulate an active filtering an return the sql database object * @return object */ public function getFilterResult() { if( \method_exists($this,'prepare') === false ) { return null; } return $this->prepare(); } /** * Simulate an active filtering an return the sql query as string * @return string */ public function getFilterQuery() { return $this->getFilterResult()->query ?: ''; } /** * Set an sql options array * @param array */ public function setOptions($arrValue) { $this->set('arrOptions',$arrValue); $this->markAsModified('arrOptions'); } /** * Get an sql options array * @return array */ public function getOptions() { return $this->get('arrOptions'); } /** * Return the contao model for a custom catalog record * @param integer * @return object */ public function getContaoModel($intId) { return new \PCT\CustomElements\Helper\ModelHelper($this->getTable(),$intId); } /** * Return the module model * @return object */ public function getModule() { return $this->getOrigin(); } } An Error Occurred: Internal Server Error

Oops! An Error Occurred

The server returned a "500 Internal Server Error".

Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.