Ejemplo n.º 1
0
 public static function get_scope_by_UID_with_relations($UID, $lang = '')
 {
     // check if scope exists
     $Scope = scope::get_scope_by_UID($UID);
     if ($Scope == null) {
         return null;
     }
     // add related scopes to scope object
     $Scope["RELATED_SCOPES"] = scope::get_relations_of_scope($UID);
     $Scope["TERMS"] = scope::get_terms_of_scope($UID, $lang);
     return $Scope;
 }