__construct() 공개 메소드

! Bootstrap
public __construct ( )
 /**
  * Constructor method for BootstrapMobileGatewayApp
  * @param bool $wantAppToken Whether an "anticipatory app account" auth token is desired
  * @return self
  */
 public function __construct($wantAppToken = null)
 {
     parent::__construct();
     if (null !== $wantAppToken) {
         $this->setProperty('wantAppToken', (bool) $wantAppToken);
     }
 }
예제 #2
0
 /**
  * Preloads the string
  *
  * @param scalar
  *
  * @return mixed
  */
 public function __construct($data)
 {
     //argument 1 must be scalar
     Argument::i()->test(1, 'scalar');
     $data = (string) $data;
     parent::__construct($data);
 }
예제 #3
0
 public function __construct(array $properties = array())
 {
     parent::__construct($properties);
     foreach ($this->blocks as $block) {
         $this->blocksById[$block->id] = $block;
     }
 }
예제 #4
0
 /**
  * Constructor method for GetAllAdminAccounts
  * @param  bool $applyCos Flag whether or not to apply class of service (COS) rules
  * @return self
  */
 public function __construct($applyCos = null)
 {
     parent::__construct();
     if (null !== $applyCos) {
         $this->setProperty('applyCos', (bool) $applyCos);
     }
 }
예제 #5
0
 /**
  * Adds layout helper.
  *
  * @todo adds helper dynamic from folder.
  * @param \Ilch\Request $request
  * @param \Ilch\Translator $translator
  * @param \Ilch\Router $router
  */
 public function __construct(\Ilch\Request $request, \Ilch\Translator $translator, \Ilch\Router $router)
 {
     parent::__construct($request, $translator, $router);
     $this->addHelper('getMenu', 'layout', new \Ilch\Layout\Helper\GetMenu($this));
     $this->addHelper('getMenus', 'layout', new \Ilch\Layout\Helper\GetMenus($this));
     $this->addHelper('getHmenu', 'layout', new \Ilch\Layout\Helper\GetHmenu($this));
 }
예제 #6
0
파일: Media.php 프로젝트: rejinka/xbmc-api
 public function __construct($object = null)
 {
     parent::__construct($object);
     if ($object instanceof \stdClass) {
         $this->setTitle($object->title);
     }
 }
예제 #7
0
파일: ED.php 프로젝트: bramus/ansi-php
 /**
  * ED - ERASE DISPLAY (ERASE IN PAGE)
  * @param mixed   $parameterBytes The Parameter Bytes
  */
 public function __construct($parameterBytes)
 {
     // Store the parameter bytes
     $this->setParameterBytes($parameterBytes);
     // Call Parent Constructor (which will store finalByte)
     parent::__construct(\Bramus\Ansi\ControlSequences\EscapeSequences\Enums\FinalByte::ED);
 }
예제 #8
0
파일: OPEN.php 프로젝트: fpoirotte/pssht
 /**
  * Construct a new SSH_MSG_CHANNEL_OPEN message.
  *
  *  \param string $type
  *      Channel type to open.
  *
  *  \copydetails Base::__construct
  *
  *  \param int $initialWindowSize
  *      Initial window size for the channel.
  *
  *  \param int $maximumPacketSize
  *      Maximum packet size.
  */
 public function __construct($type, $channel, $initialWindowSize, $maximumPacketSize)
 {
     $this->type = $type;
     parent::__construct($channel);
     $this->initialWindowSize = $initialWindowSize;
     $this->maximumPacketSize = $maximumPacketSize;
 }
예제 #9
0
파일: Member.php 프로젝트: gamanox/keypanel
 /**
  * __construct
  *
  * @ignore
  * @author Guillermo Lucio <*****@*****.**>
  * @copyright KeyPanel - 2015
  *
  */
 function __construct()
 {
     parent::__construct();
     $this->load->model('Entity_model', 'entity', TRUE);
     $this->load->model('Member_model', 'member', TRUE);
     $this->load->model('Profile_model', 'profile', TRUE);
 }
예제 #10
0
 public function __construct()
 {
     parent::__construct();
     if ($_COOKIE['sid']) {
         $this->setSID($_COOKIE['sid']);
     }
 }
예제 #11
0
 function __construct($connection, $model, $fields)
 {
     $this->model = $model;
     $this->fields = $fields;
     $this->template = sprintf("%s/templates/transformers.php", dirname(__DIR__));
     parent::__construct($connection);
 }
예제 #12
0
 /**
  * Request constructor.
  * @param object $data
  */
 function __construct($data)
 {
     parent::__construct($data);
     if (!$this->isError()) {
         if (property_exists($data, 'id')) {
             $this->id = $data->id;
         }
         if (property_exists($data, 'domainName')) {
             $this->domainName = $data->domainName;
         }
         if (property_exists($data, 'subjectAlternativeNames')) {
             $this->subjectAlternativeNames = $data->subjectAlternativeNames;
         }
         if (property_exists($data, 'dateIssued')) {
             $this->dateIssued = new \DateTime($data->dateIssued);
         }
         if (property_exists($data, 'dateExpired')) {
             $this->dateExpired = new \DateTime($data->dateExpired);
         }
         if (property_exists($data, 'company')) {
             $this->company = $data->company;
         }
         if (property_exists($data, 'customerId')) {
             $this->customerId = $data->customerId;
         }
         if (property_exists($data, '_embedded->product')) {
             $this->product = new Product($data->_embedded->product);
         }
     }
 }
예제 #13
0
 public function __construct($ePNAccount, $Total, $CardNo, $Tax, $CustCode, $Swiped = 1)
 {
     parent::__construct($ePNAccount, $CardNo, $Total);
     $this->Tax = $Tax;
     $this->CustCode = $CustCode;
     $this->Swiped = $Swiped;
 }
예제 #14
0
파일: PINDebit.php 프로젝트: vmdoh/php-epn
 public function __construct($ePNAccount, $Total, $PINBlock, $KeySerial, $CardNo, $Swiped = 1)
 {
     parent::__construct($ePNAccount, $CardNo, $Total);
     $this->PINBlock = $PINBlock;
     $this->KeySerial = $KeySerial;
     $this->Swiped = $Swiped;
 }
예제 #15
0
 /**
  * Product constructor.
  * @param object $data
  */
 public function __construct($data)
 {
     parent::__construct($data);
     if (!$this->isError()) {
         if (property_exists($data, 'id')) {
             $this->id = $data->id;
         }
         if (property_exists($data, 'brand')) {
             $this->brand = $data->brand;
         }
         if (property_exists($data, 'name')) {
             $this->name = $data->name;
         }
         if (property_exists($data, 'type')) {
             $this->type = $data->type;
         }
         if (property_exists($data, 'validation')) {
             $this->validation = $data->validation;
         }
         if (property_exists($data, 'includeDomains')) {
             $this->includeDomains = $data->includeDomains;
         }
         if (property_exists($data, 'maxDomains')) {
             $this->maxDomains = $data->maxDomains;
         }
         if (property_exists($data, 'prices')) {
             foreach ($data->prices as $price) {
                 $this->prices[] = new ProductPrice($price);
             }
         }
     }
 }
예제 #16
0
 /**
  * Initializes the frontend controller.
  *
  * @param \Aimeos\MShop\Context\Item\Iface $context Object storing the required instances for manaing databases
  *  connections, logger, session, etc.
  */
 public function __construct(\Aimeos\MShop\Context\Item\Iface $context)
 {
     parent::__construct($context);
     $this->domainManager = \Aimeos\MShop\Factory::createManager($context, 'order/base');
     $this->basket = $this->domainManager->getSession();
     $this->checkLocale();
 }
예제 #17
0
파일: post.php 프로젝트: zblogcn/zblogphp
 /**
  *
  */
 public function __construct()
 {
     global $zbp;
     parent::__construct($zbp->table['Post'], $zbp->datainfo['Post'], __CLASS__);
     $this->Title = $zbp->lang['msg']['unnamed'];
     $this->PostTime = time();
 }
예제 #18
0
 /**
  * Constructor method for SendVerificationCode
  * @param  string $address
  * @return self
  */
 public function __construct($address = null)
 {
     parent::__construct();
     if (null !== $address) {
         $this->setProperty('a', trim($address));
     }
 }
예제 #19
0
 /**
  * Constructor
  *
  * @access public
  */
 public function __construct()
 {
     global $interface;
     global $configArray;
     // Call parent constructor
     parent::__construct();
     // Fetch Record
     $config = getExtraConfigArray('MetaLib');
     $metalib = new MetaLib();
     $this->record = $metalib->getRecord($_REQUEST['id']);
     if (PEAR::isError($this->record)) {
         PEAR::raiseError($this->record);
     }
     // Get record driver
     $this->recordDriver = RecordDriverFactory::initRecordDriver($this->record);
     // Set Proxy URL
     $interface->assign('proxy', isset($configArray['EZproxy']['host']) ? $configArray['EZproxy']['host'] : false);
     // Whether RSI is enabled
     if (isset($configArray['OpenURL']['use_rsi']) && $configArray['OpenURL']['use_rsi']) {
         $interface->assign('rsi', true);
     }
     // Whether embedded openurl autocheck is enabled
     if (isset($configArray['OpenURL']['autocheck']) && $configArray['OpenURL']['autocheck']) {
         $interface->assign('openUrlAutoCheck', true);
     }
     // Send record ID to template
     $interface->assign('id', $_REQUEST['id']);
     // Send down legal export formats (if any):
     $interface->assign('exportFormats', array('RefWorks', 'EndNote'));
     // Set AddThis User
     $interface->assign('addThis', isset($configArray['AddThis']['key']) ? $configArray['AddThis']['key'] : false);
     // Get core metadata
     $interface->assign('coreMetadata', $this->recordDriver->getCoreMetadata());
 }
예제 #20
0
 /**
  * @param string|array $scopes
  * @param null $redirectUri
  */
 public function __construct($scopes, $redirectUri = null)
 {
     $scopes = (array) $scopes;
     $plural = count($scopes) > 1;
     parent::__construct(sprintf('The requested scope%s %s invalid, unknown, or malformed: %s', $plural ? 's' : '', $plural > 1 ? 'are' : 'is', implode(', ', $scopes)));
     $this->redirectUri = $redirectUri;
 }
예제 #21
0
파일: Table.php 프로젝트: rajnishp/bjs
 /**
  * Consturct a table object
  * @param $name Table name (also used as the ID)
  * @return Table object
  */
 function __construct($name = "", $accordion_name = '')
 {
     parent::__construct();
     global $jsController;
     global $js;
     $headers = array();
     $this->style = $style;
     $this->jsMod = $js;
     $this->js = $jsController;
     $this->data = array();
     $this->use_accordion = false;
     $this->page_id = 1;
     $this->use_pagination = false;
     if ($name != "") {
         $this->name = $name;
     }
     if ($accordion_name == '') {
         $this->accordion_name = 'accordion';
     } else {
         $this->accordion_name = $accordion_name;
         $js->addAccordion($accordion_name);
     }
     if ($this->name) {
         $this->table_name = 'table_' . $this->name;
         $js->addHeader($this->table_name, $this->headers);
     } else {
         $this->table_name = 'box-table-a';
     }
     $this->style = 'box-table-a';
     $this->border = 0;
 }
예제 #22
0
 /**
  * Constructor!
  *
  * @param $model string path to tagging model file
  * @param $jar string path stanford parser jar file
  * @param $java_options mixed command line arguments to pass
  *
  * @return null
  */
 public function __construct($jar, $models_jar = null, $java_options = array('-mx300m'))
 {
     parent::__construct();
     $this->setJar($jar);
     $this->setModelsJar($models_jar);
     $this->setJavaOptions($java_options);
 }
예제 #23
0
 /**
  * Constructor of Graph
  * @param string $endpoint : url of endpoint, example : http://lod.bordercloud.com/sparql
  * @param boolean $readOnly : true by default, if you allow the function query to write in the database
  * @param boolean $debug : false by default, set debug to true in order to get usefull output
  * @param string $proxy_host : null by default, IP of your proxy
  * @param string $proxy_port : null by default, port of your proxy
  * @access public
  */
 public function __construct($endpoint, $readOnly = true, $debug = false, $proxy_host = null, $proxy_port = null)
 {
     parent::__construct();
     if ($readOnly) {
         $this->_endpoint = $endpoint;
     } else {
         if (preg_match("|/sparql/?\$|i", $endpoint)) {
             $this->_endpoint = $endpoint;
             $this->_endpoint_root = preg_replace("|^(.*/)sparql/?\$|i", "\$1", $endpoint);
         } else {
             $this->_endpoint_root = $endpoint;
             $this->_endpoint = $this->_endpoint_root . "sparql/";
         }
     }
     $this->_debug = $debug;
     $this->_endpoint_write = $this->_endpoint_root . "update/";
     $this->_readOnly = $readOnly;
     $this->_proxy_host = $proxy_host;
     $this->_proxy_port = $proxy_port;
     if ($this->_proxy_host != null && $this->_proxy_port != null) {
         $this->_config = array('remote_store_endpoint' => $this->_endpoint, 'proxy_host' => $this->_proxy_host, 'proxy_port' => $this->_proxy_port);
     } else {
         $this->_config = array('remote_store_endpoint' => $this->_endpoint);
     }
     //init parser
     $this->_parserSparqlResult = new ParserSparqlResult();
 }
예제 #24
0
 /**
  * Constructor method for GetNotifications
  * @param  bool $markSeen
  * @return self
  */
 public function __construct($markSeen = null)
 {
     parent::__construct();
     if (null !== $markSeen) {
         $this->setProperty('markSeen', (bool) $markSeen);
     }
 }
예제 #25
0
 public function __construct(array $properties = array())
 {
     parent::__construct($properties);
     foreach ($this->zones as $zone) {
         $this->zonesById[$zone->id] = $zone;
     }
 }
예제 #26
0
 public function __construct()
 {
     parent::__construct();
     $dom = new DOMDocument();
     $this->html = $dom;
     $this->elements = explode(',', $this->sz_elements);
 }
예제 #27
0
 public function __construct()
 {
     if (self::$config == null) {
         self::$config = Config_Log::get_config();
     }
     parent::__construct('log', 'log');
 }
예제 #28
0
 /**
  * Constructor method for Id
  * @param  string $id The id
  * @return self
  */
 public function __construct($id = null)
 {
     parent::__construct();
     if (null !== $id) {
         $this->setProperty('id', trim($id));
     }
 }
예제 #29
0
 /**
  * 构造函数
  */
 function __construct()
 {
     global $zbp;
     parent::__construct($zbp->table['Category'], $zbp->datainfo['Category'], __CLASS__);
     $this->SubCategorys =& $this->SubCategories;
     $this->Name = $zbp->lang['msg']['unnamed'];
 }
예제 #30
0
 function __construct($data = array())
 {
     if (is_array($data)) {
         $this->apply($data);
     }
     return parent::__construct();
 }