Exemplo n.º 1
0
 public static function controllername($handle)
 {
     return BlockGenerator::camelcase($handle) . 'BlockController';
 }
Exemplo n.º 2
0
 public static function validate_unique_tablename_for_handle($handle)
 {
     //Loader::library('block_generator', 'designer_content');
     $tables = Loader::db()->MetaTables('TABLES');
     $table_name = DesignerContentBlockGenerator::tablename($handle);
     $table_exists = in_array($table_name, $tables);
     return !$table_exists;
 }