Esempio n. 1
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;
 }
 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;
 }
Esempio n. 3
0
 public function registerView($viewName)
 {
     $schemaPage = new Schema();
     $schemaPage->setName($name);
     $schemaPage->setType(Type::VIEW());
     $indexFile = $this->getSchemaIndexFile();
     $indexFile->addData($schemaPage->getData());
 }