PHP Method Schema::setType, someline-starter Code Examples

This page contains top rated real world PHP examples of method Schema::setType from package someline-starter extracted from open source projects. You can rate examples to help us improve the quality of examples
Frequently Used Methods
Example #1
Show file File: Indicies.php Project: addiks/phpsql
0
 public function getTablePage($tableId)
 {
     $entity = new Schema();
     $entity->setName($tableId);
     $entity->setCollation("latin1_bin");
     $entity->setEngine(Engine::MYISAM());
     $entity->setType(Type::TABLE());
     return $entity;
 }
Example #2
Show file File: SchemaFactory.php Project: brayansdt/KnpJsonSchemaBundle
0
 public function createSchema($title, array $properties = array(), $type = null, $schemaUrl = null, $id = null)
 {
     $schema = new Schema();
     $schema->setTitle($title);
     $schema->setType($type);
     $schema->setSchema($schemaUrl);
     $schema->setId($id);
     foreach ($properties as $property) {
         $schema->addProperty($property);
     }
     return $schema;
 }
Example #3
Show file File: DatabaseSchema.php Project: addiks/phpsql
0
 public function registerView($viewName)
 {
     $schemaPage = new Schema();
     $schemaPage->setName($name);
     $schemaPage->setType(Type::VIEW());
     $indexFile = $this->getSchemaIndexFile();
     $indexFile->addData($schemaPage->getData());
 }