__construct() public méthode

架构函数
public __construct ( boolean $location = false )
$location boolean 是否本机调用,本机调用不需要认证
 public function __construct()
 {
     parent::__construct();
     $this->paper_id = intval($this->data['paper_id']);
     $this->type = t($this->data['type']);
     $this->sysdao = M('sys_ana_test');
 }
 public function __construct()
 {
     parent::__construct();
     $this->paper_id = intval($this->data['paper_id']);
     $this->num = intval($this->data['num']);
     $this->articledao = M('ssat_article');
 }
Exemple #3
0
 public function __construct()
 {
     parent::__construct();
     // 获取关键字
     $this->keyword = t($this->data['keyword']);
     $this->type = $this->data['type'] ? intval($this->data['type']) : 1;
     // 分页数
     $page = intval($this->data['page']);
     $page <= 0 && ($page = 1);
     // 分页大小
     $pageSize = 10;
     // 使用sphinx进行搜索功能
     $sphinx = new SphinxClient();
     // 配置sphinx服务器信息
     $sphinx->SetServer(self::SPHINX_HOST, self::SPHINX_PORT);
     // 配置返回结果集
     $sphinx->SetArrayResult(true);
     // 匹配结果偏移量
     $sphinx->SetLimits(($page - 1) * $pageSize, $pageSize, 1000);
     // 设置最大搜索时间
     $sphinx->SetMaxQueryTime(3);
     // 设置搜索模式
     $sphinx->setMatchMode(SPH_MATCH_PHRASE);
     $this->sphinx = $sphinx;
 }
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->EE->load->model('template_model');
     // initialize the reserved names array
     $this->_load_reserved_groups();
 }
Exemple #5
0
 public function __construct()
 {
     parent::__construct();
     $this->paper_id = intval($this->data['paper_id']);
     $this->paper_section = intval($this->data['paper_section']);
     $this->article_id = intval($this->data['article_id']);
 }
 /**
  * Object constructor.
  */
 public function __construct($host, $shop_id, $shop_pass, $site_id, $site_pass, $params = array())
 {
     $params['shop_id'] = $shop_id;
     $params['shop_pass'] = $shop_pass;
     $params['site_id'] = $site_id;
     $params['site_pass'] = $site_pass;
     parent::__construct($host, $params);
 }
Exemple #7
0
 /**
  * Site api constructor.
  */
 public function __construct($host, $site_id, $site_pass, $params = array())
 {
     if (!is_array($params)) {
         $params = array();
     }
     $params['site_id'] = $site_id;
     $params['site_pass'] = $site_pass;
     parent::__construct($host, $params);
 }
 public function __construct()
 {
     parent::__construct();
     $api = t($_REQUEST['api']);
     !$api['api'] && ($api = $this->api_list[0]);
     if (!in_array($api, $this->api_list)) {
         $return = array('code' => '00502', 'message' => '非法请求了哦');
         exit(json_encode($return));
     }
 }
Exemple #9
0
 /**
  * Constructor.
  *
  * @param CentralAuthenticationStore $cas     Shared instance of the CentralAuthenticationStore class.
  * @param LoggerInterface            $logger  Shared instance of a Logger class.
  * @param Curl                       $curl    Shared instance of the Curl class.
  * @param RequestInterface           $request Shared instance of a Request class.
  */
 public function __construct($cas, $logger, $curl, $request)
 {
     parent::__construct($cas, $logger, $curl);
     $this->state = $request->get_get_data('state');
     $this->code = $request->get_get_data('code');
     $this->redirect_uri = $request->base_url . $request->call;
     $this->scope = NULL;
     $this->token_expires = 0;
     if ($this->state === NULL) {
         $this->state = md5(uniqid(rand(), TRUE));
     }
 }
Exemple #10
0
 public function __construct($client, array $options = array())
 {
     parent::__construct($client);
     $this->reset();
     $this->set($options);
 }
Exemple #11
0
 public function __construct($key = null)
 {
     parent::__construct();
 }
Exemple #12
0
 function __construct($request)
 {
     parent::__construct($request);
     $this->controller = new ImagenesController();
 }
 /**
  * Constructor
  *
  */
 function __construct()
 {
     parent::__construct();
     ee()->load->model('channel_entries_model');
 }
 /**
  * Constructor 
  *
  */
 public function __construct($configFile = null)
 {
     // Get the function-name for the jsonp callback
     $this->jsonPcallback = self::getJsonpCallback();
     // Set debug mode = true
     parent::__construct($configFile, true);
 }
 function __construct()
 {
     parent::__construct();
     require 'facebook/facebook.php';
     $this->facebook = new Facebook(array('appId' => '368457244245', 'secret' => '1cbfe5aefa98de84245e0aebbbcb75cb'));
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     ee()->load->model('channel_model');
     $this->assign_cat_parent = ee()->config->item('auto_assign_cat_parents') == 'n' ? FALSE : TRUE;
 }
Exemple #17
0
 function __construct($request)
 {
     parent::__construct($request);
     $this->model = new TareasModel();
 }
Exemple #18
0
 /**
  * Constructor
  *
  */
 function __construct()
 {
     parent::__construct();
     $this->EE->load->model('channel_entries_model');
 }
 public function __construct($apiUrl)
 {
     parent::__construct($apiUrl);
 }
 function __construct($controller = null, $action = null)
 {
     parent::__construct($controller, $action);
 }
Exemple #21
0
 public function __construct($attributes)
 {
     parent::__construct();
     $this->setAttributes($attributes);
 }
 public function __construct()
 {
     parent::__construct();
     $this->paper_id = intval($this->data['paper_id']);
     $this->testdao = M('ssat_article_test');
 }
Exemple #23
0
 public function __construct($attributes)
 {
     parent::__construct();
     $this->overWriteOptions = [CURLOPT_CUSTOMREQUEST => "POST", CURLOPT_POSTFIELDS => http_build_query($attributes), CURLOPT_HTTPHEADER => ["content-type: application/x-www-form-urlencoded", "key: " . $this->apiKey]];
     $this->GetData();
 }
 public function __construct()
 {
     parent::__construct();
 }
Exemple #25
0
 /**
  * Constructor.
  *
  * @param CentralAuthenticationStore $cas    Shared instance of the CentralAuthenticationStore class.
  * @param LoggerInterface            $logger Shared instance of a Logger class.
  * @param Curl                       $curl   Shared instance of the Curl class.
  */
 public function __construct($cas, $logger, $curl)
 {
     parent::__construct($cas, $logger, $curl);
 }
Exemple #26
0
 public function __construct()
 {
     parent::__construct();
     $this->_initialize();
 }
Exemple #27
0
 /**
  * Constructor
  *
  * @see https://docs.humanapi.co/docs/connect-backend
  *
  * @param array $sessionTokenData
  * @param string $clientSecret
  */
 public function __construct(array $sessionTokenData, $clientSecret)
 {
     $sessionTokenData['clientSecret'] = $clientSecret;
     $this->sessionTokenData = $sessionTokenData;
     parent::__construct();
 }
 public function __construct()
 {
     parent::__construct();
     $this->native = array('field_id', 'site_id', 'group_id', 'field_name', 'field_label', 'field_instructions', 'field_type', 'field_list_items', 'field_pre_populate', 'field_pre_channel_id', 'field_pre_field_id', 'field_ta_rows', 'field_maxl', 'field_required', 'field_text_direction', 'field_search', 'field_is_hidden', 'field_fmt', 'field_show_fmt', 'field_order');
 }
Exemple #29
0
 public function __construct($modelClass, $config = [])
 {
     $this->modelClass = $modelClass;
     parent::__construct($config);
 }