本文整理汇总了PHP中Record::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP Record::__construct方法的具体用法?PHP Record::__construct怎么用?PHP Record::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Record
的用法示例。
在下文中一共展示了Record::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
parent::__construct();
$this->width = 0;
$this->height = 0;
$this->keyword = '';
}
示例2: __construct
public function __construct()
{
parent::__construct();
$this->referenceAuthor = new ArrayCollection();
$this->referenceStorageLocation = new ArrayCollection();
$this->referenceKeyword = new ArrayCollection();
}
示例3: __construct
public function __construct()
{
parent::__construct();
$this->item = '';
$this->state = '';
$this->cid = '';
}
示例4: __construct
public function __construct()
{
parent::__construct();
$this->id = '';
$this->cpid = '';
$this->applytype = 0;
}
示例5: __construct
/**
* @param RecordRef $promotion
* @param string $code
* @param string $internalId
* @param string $externalId
*/
public function __construct($promotion, $code, $internalId, $externalId)
{
parent::__construct();
$this->promotion = $promotion;
$this->code = $code;
$this->internalId = $internalId;
$this->externalId = $externalId;
}
示例6: __construct
public function __construct($data = false, $value = false)
{
parent::__construct($data);
if (is_string($data) && property_exists($this, $data)) {
//判断$data是否为该类的成员属性
$this->findBy($data, $value);
}
}
示例7: __construct
/**
*
* @param array $params
* @todo Implement this class
*/
public function __construct(array $params)
{
$defaults = ['where_fields' => [], 'key_field' => null];
$config = array_merge($defaults, $params);
$this->setWhereFields($config['where_fields']);
$this->setKeyField($config['key_field']);
parent::__construct($config);
}
示例8: __construct
public function __construct($data)
{
parent::__construct($data);
if (null !== $data) {
$this->isInitialized = true;
$this->isDirty = true;
}
}
示例9: __construct
public function __construct()
{
parent::__construct();
$this->id = '';
$this->cpid = '';
$this->url = '';
$this->page = 0;
$this->position = 0;
}
示例10: __construct
public function __construct(array $data = null)
{
parent::__construct($data);
$this->id = isset($this->id) ? (int) $this->id : null;
$this->created_by_id = isset($this->created_by_id) ? (int) $this->created_by_id : null;
$this->title = isset($this->title) ? trim($this->title) : null;
$this->date_from = !empty($this->date_from) ? new DateTime($this->date_from) : null;
$this->date_to = !empty($this->date_to) ? new DateTime($this->date_to) : null;
$this->description = isset($this->description) ? trim($this->description) : null;
}
示例11: __construct
/**
* @param array
*/
public function __construct($data)
{
parent::__construct($data);
// when the record has data, mark it as initialized
// since Record will hold our business logic, we don't want to
// implement this behaviour there, but instead in a new proxy class
// that extends the Record class
if (null !== $data) {
$this->_isInitialized = true;
$this->_isDirty = true;
}
}
示例12: __construct
public function __construct($name, $type, $class, $method, array $parameters = array(), $authenticator = null, $cacheLength = false, $viewType = "XSLTView", $viewTemplate = null, $tableName = "resource", array $attributes = array())
{
parent::__construct($tableName, $attributes);
$this->name = $name;
$this->type = $type;
$this->class = $class;
$this->method = $method;
$this->parameters = $parameters;
$this->authenticator = $authenticator;
$this->cache_length = $cacheLength;
$this->view_template = $viewTemplate;
$this->view_type = $viewType;
}
示例13: __construct
/**
* @param ViewResultInterface $viewResult
*/
public function __construct(ViewResultInterface $viewResult = null)
{
parent::__construct($viewResult->getDatabase()->getConnection());
$this->viewResult = $viewResult;
}
示例14: __construct
public function __construct()
{
parent::__construct();
}
示例15: __construct
/**
* Constructor
*
* @access public
*/
public function __construct()
{
parent::__construct();
$this->_sms = new SMSMailer();
}