Exemple #1
0
 public static function &getInstance()
 {
     if (self::$_instance === null) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
 public function handle_request_internal()
 {
     $limit = 20;
     $fPropId = $this->_params['fPropId'];
     $per = isset($this->_params['per']) ? $this->_params['per'] : $limit;
     $sinceId = isset($this->_params['sinceId']) ? $this->_params['sinceId'] : 0;
     $tmpPer = $per + 1;
     $list = Bll_Fyk_Prop_ActionLog::getInstance()->UserActionLogList($fPropId, 'id', 'desc', $sinceId, $tmpPer);
     $hasNextPage = count($list) > $per ? 1 : 0;
     $tmp = $this->NewTmp($list, $per);
     $data = array('status' => 'ok', 'data' => array('changelist' => $tmp, 'hasNextPage' => $hasNextPage));
     return $data;
 }