Ejemplo n.º 1
0
 public function __construct()
 {
     parent::__construct();
     $this->width = 0;
     $this->height = 0;
     $this->keyword = '';
 }
Ejemplo n.º 2
0
 public function __construct()
 {
     parent::__construct();
     $this->referenceAuthor = new ArrayCollection();
     $this->referenceStorageLocation = new ArrayCollection();
     $this->referenceKeyword = new ArrayCollection();
 }
Ejemplo n.º 3
0
 public function __construct()
 {
     parent::__construct();
     $this->item = '';
     $this->state = '';
     $this->cid = '';
 }
Ejemplo n.º 4
0
 public function __construct()
 {
     parent::__construct();
     $this->id = '';
     $this->cpid = '';
     $this->applytype = 0;
 }
Ejemplo n.º 5
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;
 }
Ejemplo n.º 6
0
 public function __construct($data = false, $value = false)
 {
     parent::__construct($data);
     if (is_string($data) && property_exists($this, $data)) {
         //判断$data是否为该类的成员属性
         $this->findBy($data, $value);
     }
 }
Ejemplo n.º 7
0
 /**
  *
  * @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);
 }
Ejemplo n.º 8
0
 public function __construct($data)
 {
     parent::__construct($data);
     if (null !== $data) {
         $this->isInitialized = true;
         $this->isDirty = true;
     }
 }
Ejemplo n.º 9
0
 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;
 }
Ejemplo n.º 11
0
 /**
  * @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;
     }
 }
Ejemplo n.º 12
0
 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;
 }
Ejemplo n.º 13
0
 /**
  * @param ViewResultInterface $viewResult
  */
 public function __construct(ViewResultInterface $viewResult = null)
 {
     parent::__construct($viewResult->getDatabase()->getConnection());
     $this->viewResult = $viewResult;
 }
Ejemplo n.º 14
0
 public function __construct()
 {
     parent::__construct();
 }
Ejemplo n.º 15
0
 /**
  * Constructor
  *
  * @access public
  */
 public function __construct()
 {
     parent::__construct();
     $this->_sms = new SMSMailer();
 }
Ejemplo n.º 16
0
 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;
 }
Ejemplo n.º 17
0
 /**
  * @param Database $database
  */
 public function __construct(Database $database = null)
 {
     parent::__construct($database->getConnection());
     $this->database = $database;
 }
Ejemplo n.º 18
0
 public function __construct(array $fields = array())
 {
     parent::__construct('record', $fields);
 }
Ejemplo n.º 19
0
 /**
  * @param string $internalId
  * @param string $externalId
  */
 public function __construct($internalId, $externalId)
 {
     parent::__construct();
     $this->internalId = $internalId;
     $this->externalId = $externalId;
 }
Ejemplo n.º 20
0
 function __construct($id = null)
 {
     parent::__construct($id);
 }