/** * Gets all the music by that user. * * @param $userid * * @param bool|false $json * * @return array|bool|string|static[] */ public function GetFromUser($userid, $json = false) { if (!$this->user->ValidUser($userid)) { return false; } if ($json) { return json_encode($this->database->GetMusicFromUser($userid)); } return $this->database->GetMusicFromUser($userid); }
/** * Construct */ public function __construct() { parent::__construct(); $this->hash = new Hash(); $this->session = new Session(); }
/** * What we do on construct. */ public function __construct() { parent::__construct(); $this->permissions = new Permissions(); }
public function __construct() { parent::__construct(); $this->group = new GroupManager(); }