mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-23 09:52:22 +00:00
loads the menu for the CISVUE-Header in the server side and not in the client side
This commit is contained in:
@@ -66,6 +66,28 @@ class Content_model extends DB_Model
|
||||
return success(current(getData($result)));
|
||||
}
|
||||
|
||||
/**
|
||||
* Sucht die content_id fuer den CIS4_Root Menu content
|
||||
*
|
||||
* @return integer|null content_id of the Cis4_Root Menu
|
||||
*/
|
||||
public function getCIS4_ContentID(){
|
||||
$CIS4_ROOT_CONTENT = $this->loadWhere(["beschreibung"=>"CIS4_ROOT"]);
|
||||
if(isError($CIS4_ROOT_CONTENT))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
$CIS4_ROOT_CONTENT = getData($CIS4_ROOT_CONTENT);
|
||||
if(count($CIS4_ROOT_CONTENT) > 0)
|
||||
{
|
||||
return current($CIS4_ROOT_CONTENT)->content_id ?? null;
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Laedt alle Content Eintraege unterhalb eines Contents
|
||||
* (Ohne Newseintraege)
|
||||
|
||||
Reference in New Issue
Block a user