本文整理汇总了PHP中Base::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Base::__construct方法的具体用法?PHP Base::__construct怎么用?PHP Base::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Base
的用法示例。
在下文中一共展示了Base::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __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: __construct
/**
* 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: __construct
public function __construct(array $properties = array())
{
parent::__construct($properties);
foreach ($this->blocks as $block) {
$this->blocksById[$block->id] = $block;
}
}
示例4: __construct
/**
* 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: __construct
/**
* 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: __construct
public function __construct($object = null)
{
parent::__construct($object);
if ($object instanceof \stdClass) {
$this->setTitle($object->title);
}
}
示例7: __construct
/**
* 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: __construct
/**
* 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:
/**
* __construct
*
* @ignore
* @author Guillermo Lucio <guillermo.lucio@gmail.com>
* @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: __construct
public function __construct()
{
parent::__construct();
if ($_COOKIE['sid']) {
$this->setSID($_COOKIE['sid']);
}
}
示例11: sprintf
function __construct($connection, $model, $fields)
{
$this->model = $model;
$this->fields = $fields;
$this->template = sprintf("%s/templates/transformers.php", dirname(__DIR__));
parent::__construct($connection);
}
示例12: Product
/**
* 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: __construct
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: __construct
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: __construct
/**
* 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);
}
}
}
}