Ejemplo n.º 1
0
 public function getId($category_alias = null)
 {
     $db = YireoHelper::getDBO();
     if (YireoHelper::isJoomla15()) {
         $query = "SELECT `id` FROM `#__categories` WHERE `alias`=" . $db->quote($category_alias) . " AND `section`='com_simplelists' LIMIT 1";
     } else {
         $query = "SELECT `id` FROM `#__categories` WHERE `alias`=" . $db->quote($category_alias) . " AND `extension`='com_simplelists' LIMIT 1";
     }
     $db->setQuery($query);
     return $db->loadResult();
 }