Inheritance: extends Object
示例#1
0
文件: Space.php 项目: jabouzi/projet
 function __construct($id = null, $name = 'main')
 {
     parent::__construct($id);
     //$this->events = self::getCollection("Event");
     $this->events = null;
     $this->name = $name;
 }
示例#2
0
文件: Rang.class.php 项目: Klym/flame
 function __construct($id = null, $rangName, $minScores, $maxScores)
 {
     parent::__construct($id);
     $this->rangName = $rangName;
     $this->minScores = $minScores;
     $this->maxScores = $maxScores;
 }
示例#3
0
 /**
  * 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);
 }
示例#4
0
文件: Page.class.php 项目: Klym/flame
 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;
 }
示例#5
0
文件: Document.php 项目: Klym/sp-dnr
 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);
 }
示例#6
0
文件: Partner.php 项目: Klym/sp-dnr
 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;
 }
示例#7
0
 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;
 }
示例#8
0
 /**
  * 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;
 }
示例#9
0
文件: User.class.php 项目: Klym/flame
 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;
 }
示例#10
0
 function __construct($id, $title, $text, $shortText)
 {
     parent::__construct($id, $title, $text);
     $this->shortText = $shortText;
 }
示例#11
0
 function __construct($id = null, $name = null)
 {
     $this->name = $name;
     $this->spaces = self::getCollection('woo\\domain\\Space');
     parent::__construct($id);
 }
示例#12
0
文件: Venue.php 项目: jabouzi/projet
 function __construct($id = null, $name = null)
 {
     $this->name = $name;
     parent::__construct($id);
 }
示例#13
0
 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;
 }
示例#14
0
文件: PageText.php 项目: Klym/sp-dnr
 function __construct($id, $title, $text)
 {
     parent::__construct($id, $title, $text);
 }
示例#15
0
文件: Data.class.php 项目: Klym/flame
 function __construct($id = null, $title, $text)
 {
     parent::__construct($id);
     $this->title = $title;
     $this->text = $text;
 }
示例#16
0
文件: Category.php 项目: Klym/sp-dnr
 function __construct($id, $title)
 {
     parent::__construct($id, $title);
 }
示例#17
0
文件: Event.php 项目: jabouzi/projet
 function __construct($id = null, $name = "unknown")
 {
     parent::__construct($id);
     $this->name = $name;
 }
示例#18
0
 function __construct($id_in = null, $name_in = null)
 {
     parent::__construct($id_in);
     $this->name = $name_in;
 }
示例#19
0
 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);
 }
示例#21
0
文件: datamapper.php 项目: erkie/cowl
 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;
 }