Пример #1
0
 public function process_schema($name, $data, $table)
 {
     $table_tags = self::table_tags($table, $name);
     $fields_tags = array('id' => array('sqltype' => 'serial'), 'title' => array('sqltype' => 'varchar(100) index'));
     CMS_Fields::process_schema($table_tags, $fields_tags);
     $table_rels = self::table_rels($table, $name);
     $fields_rels = array('tag_id' => array('sqltype' => 'int index'), 'item_id' => array('sqltype' => 'int index'));
     CMS_Fields::process_schema($table_rels, $fields_rels);
 }
Пример #2
0
 static function run()
 {
     CMS_Fields::process_schema('tao_cli_calls', self::fields());
 }