public static function menus($dom_id = 'MenusContainer')
 {
     $modules = ModuleRegistry::modules();
     $html = $js = array();
     $i = count($modules);
     foreach ($modules as $module) {
         $model = $module::model();
         if (isset($model->components->cards)) {
             if (in_array('menu', get_class_methods($model->components->cards))) {
                 $i--;
                 $card = ModuleCard::render($module::$registry_key, 'menu');
                 $html[] = CardKitHTML::menuCardHidingContainer($card->html, $i);
                 $js[] = $card->js;
             }
         }
     }
     return DOMElementKitJS::addIntoDom($dom_id, implode('', $html), 'replace') . implode(' ', $js);
 }
 public static function internalForms($_model = null)
 {
     $module = static::$module;
     $modeler = $module::model()->modeler;
     $_model = $_model == null ? forward_static_call_array(array($modeler, 'model'), array()) : forward_static_call_array(array($modeler, 'model'), array($_model));
     $_o = (object) null;
     $_o->size = 'large';
     $_o->icon_type = 'menu-icon';
     $_o->icon_background = 'sequode-icon-background';
     $_o->menu = (object) null;
     $_o->menu->items = self::modelOperationsMenuItems();
     $_o->head = $_model->name;
     $sequence = json_decode($_model->sequence);
     foreach ($sequence as $loop_sequence_key => $loop_model_id) {
         $_o->body[] = ModuleCard::render($module::$registry_key, 'internalPositionForms', array($loop_sequence_key));
     }
     if (\Sequode\Application\Modules\Account\Authority::isSystemOwner()) {
         $_o->body[] = CardKitHTML::modelId($_model);
     }
     return $_o;
 }
 public static function my($dom_id = 'CardsContainer')
 {
     $module = static::$module;
     return CardKitJS::placeCard(ModuleCard::render($module::$registry_key, __FUNCTION__), $dom_id);
 }
 public static function favorites($dom_id = 'CardsContainer')
 {
     $module = static::$module;
     $modeler = $module::model()->modeler;
     return CardKitJS::placeCard(ModuleCard::render($module::$registry_key, __FUNCTION__), $dom_id);
 }