protected function get_link_path_internal($top_object) { if ($this->steam_object->get_id() == lms_steam::get_current_user()->get_id()) { return array(array("name" => $this->get_display_name(), "link" => $this->get_url(), "koala_obj" => $this, "obj" => $this->steam_object)); } $koala_user = new koala_user($this->steam_object); $link_path = $koala_user->get_link_path($top_object); $link_path[] = array("name" => $this->get_display_name(), "link" => $this->get_url(), "koala_obj" => $this, "obj" => $this->steam_object); return $link_path; }
/** * Returns the user's subscribed news feeds. * * @param int $offset (optional) offset in the feeds (for pagination) * @param int $length (optional) number of items to return (e.g. for pagination) * @param boolean $return_pagination_info (optional) if TRUE, then an array('feeds'=>array(...),'total'=>nr,'start'=>nr,'page'=>nr,'length'=>nr) is returned instead of just a result array. * @return array of feeds, where each feed is an array('type','title','name','url','author','date','obj','feed_obj') with the corresponding values, or a mapping with pagination info if $return_pagination_info was TRUE */ public function get_news_feeds($offset = 0, $length = 0, $return_pagination_info = FALSE) { return koala_user::get_news_feeds_static($offset, $length, $return_pagination_info, $this); }