コード例 #1
0
ファイル: view.php プロジェクト: roborovski/nosql
 /**
  * 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;
 }
コード例 #2
0
ファイル: user.php プロジェクト: paulocarvalhodesign/PHPillow
 /**
  * Construct new book document
  *
  * Construct new book document and set its property validators.
  *
  * @return void
  */
 public function __construct()
 {
     $this->properties = array('login' => new phpillowRegexpValidator('(^[\\x21-\\x7e]+$)i'), 'email' => new phpillowEmailValidator(), 'name' => new phpillowStringValidator(), 'valid' => new phpillowRegexpValidator('(^0|1|[a-f0-9]{32}$)'), 'auth_type' => new phpillowStringValidator(), 'auth_infos' => new phpillowNoValidator());
     parent::__construct();
 }
コード例 #3
0
ファイル: userDocument.php プロジェクト: kazukeri/phpBlanket
 public function __construct()
 {
     $this->properties = array('login' => new phpillowStringValidator(), 'password' => new phpillowStringValidator());
     parent::__construct();
 }
コード例 #4
0
 public function __construct()
 {
     parent::__construct();
 }
コード例 #5
0
 public function __construct()
 {
     $this->properties = array('nazwa' => new phpillowStringValidator(), 'szerokosc' => new phpillowStringValidator(), 'dlugosc' => new phpillowStringValidator(), 'ludnosc' => new phpillowStringValidator(), 'link' => new phpillowStringValidator());
     parent::__construct();
 }
コード例 #6
0
ファイル: itemDocument.php プロジェクト: kazukeri/phpBlanket
 public function __construct()
 {
     $this->properties = array('_id' => new phpillowStringValidator(), 'title' => new phpillowStringValidator(), 'text' => new phpillowTextValidator(), 'date' => new phpillowTextValidator(), 'comments' => new phpillowDocumentArrayValidator('myNewsComments'));
     parent::__construct();
 }
コード例 #7
0
ファイル: group.php プロジェクト: kazukeri/phpBlanket
 /**
  * Construct new book document
  * 
  * Construct new book document and set its property validators.
  * 
  * @return void
  */
 public function __construct()
 {
     $this->properties = array('name' => new phpillowRegexpValidator('(^[\\x21-\\x7e]+$)i'), 'description' => new phpillowTextValidator(), 'users' => new phpillowArrayValidator(), 'permissions' => new phpillowArrayValidator());
     parent::__construct();
 }
コード例 #8
0
 public function __construct()
 {
     $this->properties = array('_id' => new phpillowStringValidator(), 'title' => new phpillowStringValidator(), 'text' => new phpillowTextValidator(), 'date' => new phpillowTextValidator());
     parent::__construct();
 }
コード例 #9
0
ファイル: documents.php プロジェクト: NickCarneiro/PillowChat
 public function __construct()
 {
     $this->properties = array('message' => new phpillowStringValidator(), 'username' => new phpillowStringValidator(), 'timestamp' => new phpillowStringValidator(), 'tripcode' => new phpillowStringValidator());
     parent::__construct();
 }