public function __construct() { parent::__construct(); $this->width = 0; $this->height = 0; $this->keyword = ''; }
public function __construct() { parent::__construct(); $this->referenceAuthor = new ArrayCollection(); $this->referenceStorageLocation = new ArrayCollection(); $this->referenceKeyword = new ArrayCollection(); }
public function __construct() { parent::__construct(); $this->item = ''; $this->state = ''; $this->cid = ''; }
public function __construct() { parent::__construct(); $this->id = ''; $this->cpid = ''; $this->applytype = 0; }
/** * @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; }
public function __construct($data = false, $value = false) { parent::__construct($data); if (is_string($data) && property_exists($this, $data)) { //判断$data是否为该类的成员属性 $this->findBy($data, $value); } }
/** * * @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); }
public function __construct($data) { parent::__construct($data); if (null !== $data) { $this->isInitialized = true; $this->isDirty = true; } }
public function __construct() { parent::__construct(); $this->id = ''; $this->cpid = ''; $this->url = ''; $this->page = 0; $this->position = 0; }
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; }
/** * @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; } }
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; }
/** * @param ViewResultInterface $viewResult */ public function __construct(ViewResultInterface $viewResult = null) { parent::__construct($viewResult->getDatabase()->getConnection()); $this->viewResult = $viewResult; }
public function __construct() { parent::__construct(); }
/** * Constructor * * @access public */ public function __construct() { parent::__construct(); $this->_sms = new SMSMailer(); }
public function __construct($id, $name, $content, $type, $priority = null, $failover = null, $failovercontent = null, $ttl = 3600, $domain = null, $geo = 0, $geolat = null, $geolong = null) { parent::__construct($name, $content, $type, $priority, $failover, $failovercontent, $ttl, $geo, $geolat, $geolong); $this->id = $id; $this->domain = $domain; }
/** * @param Database $database */ public function __construct(Database $database = null) { parent::__construct($database->getConnection()); $this->database = $database; }
public function __construct(array $fields = array()) { parent::__construct('record', $fields); }
/** * @param string $internalId * @param string $externalId */ public function __construct($internalId, $externalId) { parent::__construct(); $this->internalId = $internalId; $this->externalId = $externalId; }
function __construct($id = null) { parent::__construct($id); }