mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
- Menü optimierungen
- Mehrsprachige Arrays für Studiengang und LVs hinzugefügt - Menü-Addons für mehrsprachige LV-Namen angepasst
This commit is contained in:
@@ -485,6 +485,37 @@ class content extends basis_db
|
||||
|
||||
/************ Menue / Childnodes *****************/
|
||||
|
||||
/**
|
||||
* Prueft ob der Content Kindelemente hat
|
||||
*
|
||||
* @param $content_id
|
||||
*/
|
||||
public function hasChilds($content_id)
|
||||
{
|
||||
$qry = "SELECT count(*) as anzahl FROM campus.tbl_contentchild WHERE content_id='".addslashes($content_id)."'";
|
||||
|
||||
if($result = $this->db_query($qry))
|
||||
{
|
||||
if($row = $this->db_fetch_object($result))
|
||||
{
|
||||
if($row->anzahl>0)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->errormsg = 'Fehler beim Laden von Daten';
|
||||
return false;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->errormsg = 'Fehler beim Laden von Daten';
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Liefert die Alle Childcontents des uebergebenen Contents als Array zurueck.
|
||||
* Dieses kann zB direkt in das Vilesci Menue integriert werden
|
||||
|
||||
Reference in New Issue
Block a user