static private $settingspages = array();
static private $navigation = array();
static private $subnavigation = array();
- static private $personalmenu = array();
/**
* @brief loads all apps
return self::$activeapp;
}
- /**
- * @brief adds an entry to the personal menu
- * @param $data array containing the data
- * @returns true/false
- *
- * This function adds a new entry to the personal menu visible to users
- * only. $data is an associative array.
- * The following keys are required:
- * - id: unique id for this entry ("logout")
- * - href: link to the page
- * - name: Human readable name ("Logout")
- *
- * The following keys are optional:
- * - order: integer, that influences the position of your application in
- * the personal menu. Lower values come first.
- */
- public static function addPersonalMenuEntry( $data ){
- // TODO: write function
- OC_APP::$personalmenu[] = $data;
- return true;
- }
-
/**
* @brief registers an admin page
* @param $data array containing the data
return OC_APP::$navigation;
}
- /**
- * @brief Returns the personal menu
- * @returns associative array
- *
- * This function returns an array containing all personal menu entries
- * added. The entries are sorted by the key "order" ascending.
- */
- public static function getPersonalMenu(){
- // TODO: write function
- return OC_APP::$personalmenu;
- }
-
/**
* @brief Returns the admin pages
* @returns associative array
$page = new OC_TEMPLATE( "core", "layout.user" );
// Add menu data
- // Add navigation entry and personal menu
+ // Add navigation entry
$page->assign( "navigation", OC_APP::getNavigation());
- $page->assign( "personalmenu", OC_APP::getPersonalMenu());
}
elseif( $this->renderas == "admin" )
{