本文整理汇总了PHP中Connector::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Connector::__construct方法的具体用法?PHP Connector::__construct怎么用?PHP Connector::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Connector
的用法示例。
在下文中一共展示了Connector::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
/**
* Constructor
* Loads required models
*/
public function __construct()
{
parent::__construct();
// Load linking models
$this->ci->load->model('tag_type_m');
$this->ci->load->model('item_has_tag_m');
}
示例2: __construct
public function __construct($res, $type = false, $item_type = false, $data_type = false)
{
if (!$item_type) {
$item_type = "OptionsDataItem";
}
parent::__construct($res, $type, $item_type, $data_type);
}
示例3: __construct
/**
* ProwlConnector.class provides access to the
* webservice interface of Prowl by using
* cUrl + SSL. Use the setters of this class
* to provide the mandatory parameters.
*
* @throws \RuntimeException
*/
public function __construct()
{
parent::__construct();
$curl_info = curl_version();
// Checks for cURL function and SSL version. Thanks Adrian Rollett!
if (empty($curl_info['ssl_version'])) {
throw new \RuntimeException('Your cUrl Extension does not support SSL.');
}
}
示例4: __construct
public function __construct()
{
parent::__construct();
$this->ci->load->model('tag_type_m');
// Load in tag types
if (empty($this->_tag_types)) {
$this->_tag_types = $this->ci->tag_type_m->get(array('array_key' => 'name'));
}
}
示例5: __construct
public function __construct($res, $type = false, $item_type = false, $data_type = false)
{
if (!$item_type) {
$item_type = "FormDataItem";
}
if (!$data_type) {
$data_type = "FormDataProcessor";
}
parent::__construct($res, $type, $item_type, $data_type);
}
示例6: __construct
public function __construct($res, $type = false, $item_type = false, $data_type = false, $render_type = false)
{
if (!$item_type) {
$item_type = "SchedulerDataItem";
}
if (!$data_type) {
$data_type = "SchedulerDataProcessor";
}
if (!$render_type) {
$render_type = "RenderStrategy";
}
parent::__construct($res, $type, $item_type, $data_type, $render_type);
}
示例7: __construct
public function __construct($res, $type = false, $item_type = false, $data_type = false, $render_type = false)
{
if (!$item_type) {
$item_type = "GanttDataItem";
}
if (!$data_type) {
$data_type = "GanttDataProcessor";
}
if (!$render_type) {
$render_type = "RenderStrategy";
}
parent::__construct($res, $type, $item_type, $data_type, $render_type);
$this->event->attach("afterDelete", array($this, "delete_related_links"));
$this->event->attach("afterOrder", array($this, "order_set_parent"));
}
示例8: __construct
public function __construct($consumerKey, $privateKey, $environment)
{
parent::__construct($consumerKey, $privateKey);
$this->environment = $environment;
}
示例9: __construct
public function __construct($res, $type = false, $item_type = false, $data_type = false)
{
if (!$item_type) {
$item_type = "TreeDataItem";
}
if (!$data_type) {
$data_type = "TreeDataProcessor";
}
parent::__construct($res, $type, $item_type, $data_type);
$this->event->attach("afterInsert", array($this, "parent_id_correction_a"));
$this->event->attach("beforeProcessing", array($this, "parent_id_correction_b"));
}
示例10: __construct
public function __construct($options)
{
parent::__construct($options);
$this->connect();
}
示例11:
function __construct($res, $type = "MySQL")
{
parent::__construct($res, $type);
}
示例12: __construct
public function __construct($res, $type = false, $item_type = false, $data_type = false)
{
if (!$item_type) {
$item_type = "DataItem";
}
if (!$data_type) {
$data_type = "";
}
//has not sense, options not editable
parent::__construct($res, $type, $item_type, $data_type);
}
示例13: __construct
public function __construct($oAuthConfig)
{
parent::__construct();
$this->config = $oAuthConfig;
$this->client = new OAuth2\Client($oAuthConfig["clientId"], $oAuthConfig["clientSecret"], $oAuthConfig["authType"]);
}
示例14: __construct
/**
* Client constructor.
*
* @param array|null $options
*/
public function __construct(array $options = null)
{
parent::__construct($options);
}
示例15: array
function __construct($initer = array())
{
parent::__construct($initer);
}