예제 #1
0
파일: User.php 프로젝트: apioo/fusio-impl
 public function getDefinition()
 {
     $sb = $this->getSchemaBuilder('user');
     $sb->integer('id');
     $sb->integer('status');
     $sb->string('name')->setPattern('[A-z0-9\\-\\_\\.]{3,32}');
     $sb->string('email');
     $sb->arrayType('scopes')->setPrototype(Property::getString('name'));
     $sb->arrayType('apps')->setPrototype($this->getSchema('Fusio\\Impl\\Backend\\Schema\\App'));
     $sb->dateTime('date');
     return $sb->getProperty();
 }
예제 #2
0
 public function getDefinition()
 {
     $sb = $this->getSchemaBuilder('config');
     $sb->setAdditionalProperties(Property::getString());
     $config = $sb->getProperty();
     $sb = $this->getSchemaBuilder('connection');
     $sb->integer('id');
     $sb->string('name')->setPattern('[A-z0-9\\-\\_]{3,64}');
     $sb->string('class');
     $sb->complexType('config', $config);
     return $sb->getProperty();
 }
예제 #3
0
파일: App.php 프로젝트: apioo/fusio-impl
 public function getDefinition()
 {
     $sb = $this->getSchemaBuilder('app');
     $sb->integer('id');
     $sb->integer('userId');
     $sb->integer('status');
     $sb->string('name')->setPattern('[A-z0-9\\-\\_]{3,64}');
     $sb->string('url');
     $sb->string('parameters');
     $sb->string('appKey');
     $sb->string('appSecret');
     $sb->dateTime('date');
     $sb->arrayType('scopes')->setPrototype(Property::getString('name'));
     $sb->arrayType('tokens')->setPrototype($this->getSchema('Fusio\\Impl\\Backend\\Schema\\App\\Token'));
     return $sb->getProperty();
 }