Пример #1
0
 protected final function methodIsCallable($method)
 {
     if ($this->methodIsAllowed($method)) {
         // module must only call public methods
         return Utils::externalCallTest($this, $method);
     }
 }
Пример #2
0
 /**
  * @param int $start
  * @param int $end
  * @param array $orderBy
  * @param array $search
  */
 public function listNodeDataChar($start = 0, $end = 30, $orderBy = array(), $search = array())
 {
     $req = $this->dbNodeDataChar->duplicate();
     $req->orderBy($orderBy);
     if (empty($search)) {
         $req->andWhere(true);
     } else {
         $req->search($search);
     }
     $req->limitSelect($start, $end);
     $rows = $req->getAll();
     $total = $req->foundRows();
     return Module_Utils::formatList($rows, $start, $end, $total);
 }