function __construct($out, Profile $profile) { parent::__construct($out); $this->profile = $profile; $user = common_current_user(); $this->lists = $profile->getLists($user); }
function item($actionName, array $args, $label, $description, $id = null, $cls = null) { if ($actionName != 'placeholder') { return parent::item($actionName, $args, $label, $description, $id, $cls); } if (empty($id)) { $id = $this->menuItemID('showgroup', array('nickname' => $args['nickname'])); } $url = $args['mainpage']; $this->out->menuItem($url, $label, $description, $this->isCurrent($actionName, $args), $id, $cls); }
function __construct($out, $user, $searches) { parent::__construct($out); $this->user = $user; $this->searches = $searches; }
function __construct($out, $user, $tags) { parent::__construct($out); $this->user = $user; $this->tags = $tags; }
function __construct($out, Profile $profile) { parent::__construct($out); $this->profile = $profile; $this->lists = $profile->getLists(Profile::current()); }