$token ); $stmt = $appbox->get_connection()->prepare($sql); $stmt->execute($params); $row = $stmt->fetch(PDO::FETCH_ASSOC); $stmt->closeCursor(); if ( ! $row) throw new Exception_FeedNotFound($token); $this->usr_id = $row['usr_id']; $this->appbox = $appbox; return $this; } /** * * @return Feed_Aggregate */ public function get_feed() { if ( ! $this->feed) $this->feed = Feed_Aggregate::load_with_user($this->appbox, $this->get_user()); return $this->feed; } }