/** * Construct new document * * Construct new document * * @return void */ public function __construct() { $this->properties = array('language' => new phpillowRegexpValidator('(^(?:javascript)$)'), 'views' => new phpillowArrayValidator()); parent::__construct(); $this->language = 'javascript'; $this->views = $this->viewDefinitions; }
/** * Create a new instance of the document class * * Create a new instance of the statically called document class. * Implementing this method should only be required when using PHP 5.2 and * lower, otherwise the class can be determined using LSB. * * Do not pass a parameter to this method, this is only used to maintain * the called class information for PHP 5.2 and lower. * * @param mixed $docType * @return phpillowDocument */ public static function createNew($docType = null) { return parent::createNew($docType === null ? __CLASS__ : $docType); }
public function __construct() { $this->properties = array('login' => new phpillowStringValidator(), 'password' => new phpillowStringValidator()); parent::__construct(); }
public function __construct() { $this->properties = array('nazwa' => new phpillowStringValidator(), 'szerokosc' => new phpillowStringValidator(), 'dlugosc' => new phpillowStringValidator(), 'ludnosc' => new phpillowStringValidator(), 'link' => new phpillowStringValidator()); parent::__construct(); }
public function __construct() { $this->properties = array('_id' => new phpillowStringValidator(), 'title' => new phpillowStringValidator(), 'text' => new phpillowTextValidator(), 'date' => new phpillowTextValidator(), 'comments' => new phpillowDocumentArrayValidator('myNewsComments')); parent::__construct(); }
public function __construct() { $this->properties = array('_id' => new phpillowStringValidator(), 'title' => new phpillowStringValidator(), 'text' => new phpillowTextValidator(), 'date' => new phpillowTextValidator()); parent::__construct(); }
public function __construct() { $this->properties = array('message' => new phpillowStringValidator(), 'username' => new phpillowStringValidator(), 'timestamp' => new phpillowStringValidator(), 'tripcode' => new phpillowStringValidator()); parent::__construct(); }