Ejemplo n.º 1
0
 /**
  * @static
  * @return rest_Check
  */
 public static function instance()
 {
     if (self::$self == NULL) {
         self::$self = new self();
     }
     return self::$self;
 }
Ejemplo n.º 2
0
 function init()
 {
     $this->userinfo = models_user::getInstance()->getUserInfo();
     $this->user_id = is_array($this->userinfo) && array_key_exists('user_id', $this->userinfo) ? $this->userinfo['user_id'] : 0;
     self::check_login();
     $this->db = db_contect::db();
     $this->check = rest_Check::instance();
     $this->quantity = rest_Quantity::instance();
     $this->rest = rest_Server::instance();
     $this->modified = rest_Modified::instance();
     $this->session = Yaf_Session::getInstance();
     $this->mkData = rest_Mkdata::instance();
     $this->setScaffoldConfig();
     $this->ScaffoldRoute();
     $this->setConfig();
 }