function __construct($id = null, $name = 'main') { parent::__construct($id); //$this->events = self::getCollection("Event"); $this->events = null; $this->name = $name; }
function __construct($id = null, $rangName, $minScores, $maxScores) { parent::__construct($id); $this->rangName = $rangName; $this->minScores = $minScores; $this->maxScores = $maxScores; }
/** * SignUser constructor. * @param $name * @param $email * @param $password */ public function __construct($uid, $name, $email, $password) { parent::__construct($uid); $this->name = $name; $this->email = $email; $this->password = $this->hash($password); }
function __construct($id = null, $page, $title, $meta_d, $meta_k) { parent::__construct($id); $this->page = $page; $this->title = $title; $this->meta_d = $meta_d; $this->meta_k = $meta_k; }
function __construct($id, $title, $text, $description, $date, $src) { parent::__construct($id, $title, $text); $this->description = $description; $this->date = $date; $this->src = $src; $this->format = $this->generateFormat($src); }
function __construct($id, $title, $text, $address, $email, $tel1, $tel2, $img, $bannerFlag) { parent::__construct($id, $title, $text); $this->address = $address; $this->email = $email; $this->tel1 = $tel1; $this->tel2 = $tel2; $this->img = $img; $this->bannerFlag = $bannerFlag; }
function __construct($id = null, $name, $scores, $rang, $dol, $fullName, $skype) { parent::__construct($id); $this->name = $name; $this->scores = $scores; $this->rang = $rang; $this->dol = $dol; $this->fullName = $fullName; $this->skype = $skype; }
/** * User constructor. * @param $uid * @param $password * @param $userName * @param $role * @param $gender * @param $email * @param $age * @param $icon_url * @param $location */ public function __construct($uid, $password, $userName, $role, $gender, $email, $age, $icon_url, $location) { $this->uid = $uid; $this->password = $password; parent::__construct($userName); $this->role = $role; $this->gender = $gender; $this->email = $email; $this->age = $age; $this->icon_url = $icon_url; $this->location = $location; }
function __construct($id = null, $login, $password, $email, $access, $name, $fam, $pol, $regDate, $birthDate, $avatar, $activation) { parent::__construct($id); $this->login = $login; $this->password = $password; $this->email = $email; $this->access = $access; $this->name = $name; $this->fam = $fam; $this->pol = $pol; $this->regDate = $regDate; $this->birthDate = $birthDate; $this->avatar = $avatar; $this->activation = $activation; }
function __construct($id, $title, $text, $shortText) { parent::__construct($id, $title, $text); $this->shortText = $shortText; }
function __construct($id = null, $name = null) { $this->name = $name; $this->spaces = self::getCollection('woo\\domain\\Space'); parent::__construct($id); }
function __construct($id = null, $name = null) { $this->name = $name; parent::__construct($id); }
public function buildUpdate(DomainObject $object) { $values = $object->fetchDirty(); if (!count($values)) { return false; } $query = sprintf('UPDATE `%s` AS %s', $this->table, $this->prefix) . PHP_EOL; $query .= 'SET '; foreach ($values as $key => $value) { $query .= PHP_EOL . sprintf('%s = %s, ', $this->quoteField($key), $this->quote($value)); } // Remove last ", " $query = substr($query, 0, -2); $query .= PHP_EOL . sprintf('WHERE %s = %s LIMIT 1', $this->quoteField($this->primary_key), $this->quote($object->getID())); return $query; }
function __construct($id, $title, $text) { parent::__construct($id, $title, $text); }
function __construct($id = null, $title, $text) { parent::__construct($id); $this->title = $title; $this->text = $text; }
function __construct($id, $title) { parent::__construct($id, $title); }
function __construct($id = null, $name = "unknown") { parent::__construct($id); $this->name = $name; }
function __construct($id_in = null, $name_in = null) { parent::__construct($id_in); $this->name = $name_in; }
function __construct($id = null, $title, $color) { parent::__construct($id); $this->title = $title; $this->color = $color; }
public function __construct(array $data, $generateExc) { parent::__construct($data, $generateExc); }
public function populateFromRow(DomainObject $object, array $row) { foreach ($row as $field => $value) { if ($field == 'id') { $object->setID($value); } else { $object->setFromDB($field, $value); } } $object->initialize(); return $object; }