function __construct($user_id, $own)
 {
     parent::__construct();
     $this->user_id = $user_id;
     $this->own = $own;
     $this->selectVerbs = array();
 }
 function __construct($id)
 {
     parent::__construct();
     $this->id = $id;
 }
Example #3
0
 function repeatStream($limit = 100)
 {
     $cache = Cache::instance();
     if (empty($cache)) {
         $ids = $this->_repeatStreamDirect($limit);
     } else {
         $idstr = $cache->get(Cache::key('notice:repeats:' . $this->id));
         if ($idstr !== false) {
             if (empty($idstr)) {
                 $ids = array();
             } else {
                 $ids = explode(',', $idstr);
             }
         } else {
             $ids = $this->_repeatStreamDirect(100);
             $cache->set(Cache::key('notice:repeats:' . $this->id), implode(',', $ids));
         }
         if ($limit < 100) {
             // We do a max of 100, so slice down to limit
             $ids = array_slice($ids, 0, $limit);
         }
     }
     return NoticeStream::getStreamByIds($ids);
 }
 function __construct($userId)
 {
     parent::__construct();
     $this->userId = $userId;
 }
 function __construct($profile)
 {
     parent::__construct();
     $this->profile = $profile;
 }