Manages all models.
321236
public function actionManage($view=null) 
	{
		$pageTitle = Yii::t('phrase', 'Page Views Data');
		if($view != null) {
			$data = OmmuPageViews::model()->findByPk($view);
			$pageTitle = Yii::t('phrase', 'Page Views Data: $page_title - user Guest', array ('$page_title'=>$data->page->title->message));	
			if($data->user_id)
				$pageTitle = Yii::t('phrase', 'Page Views Data: $page_title - user $user_displayname', array ('$page_title'=>$data->page->title->message, '$user_displayname'=>$data->user->displayname));
		}
		
		$model=new OmmuPageViewHistory('search');
		$model->unsetAttributes();	// clear any default values
		if(isset($_GET['OmmuPageViewHistory'])) {
			$model->attributes=$_GET['OmmuPageViewHistory'];
		}

		$columns = $model->getGridColumn($this->gridColumnTemp());

		$this->pageTitle = $pageTitle;
		$this->pageDescription = '';
		$this->pageMeta = '';
		$this->render('admin_manage', array(
			'model'=>$model,
			'columns' => $columns,
		));
	}
376962
def set(self, models):
        
        # Do not add None values to selection
        if models is None:
            models = set()

        models = self._check_model_types(models)
        if len(models) > 1:
            models = reduce_to_parent_states(models)

        self._selected = set(models)
1292719
protected function checkModels()
    {
        $models = func_get_args();
        //
        foreach ($models as $model) {
            if (!class_exists($model)) {
                $this->ModelNotFinded($model);
            }
        }
    }
1247115
private function registerModelChecks()
    {
        $models = $this->getRegistryCache()->getModels();

        /** @var $modelObj Model */
        foreach ($models as $name => $modelObj) {
            if (!$modelObj->hasMethod('checks')) {
                continue;
            }

            self::getCheckRegistry()->register([$modelObj, 'checks'], [Tags::Model]);
        }
    }
182871
def setup_managers(self):
        
        self._managers = {}
        for manager_class in MODEL_MANAGERS:
            instance = manager_class(self)
            if not instance.forbid_registration \
                    and not isinstance(instance, ApplicationManager) or instance.__class__ is ApplicationManager:
                # Descendants of ``ApplicationManager`` shouldn't be present in API instance.  They are controlled by
                # Application controller. The manager itself, on the other hand, should.
                setattr(self, instance.name, instance)
            if instance.model:
                self._managers[instance.model.__name__] = instance
            if instance.model_aliases:
                for alias in instance.model_aliases:
                    self._managers[alias] = instance
428993
protected function initModelManager()
    {
        $managerClass = $this->getModel();
        $modelManager = $this->newModelManagerInstance($this->getModel());
        if ($modelManager instanceof RecordManager) {
            $this->modelManager = $this->newModelManagerInstance($this->getModel());
        } else {
            throw new Exception(
                "invalid ModelManager name [$managerClass] 
                for controller [" . $this->getClassName() . "]"
            );
        }
    }
144816
public function actionManage() 
	{
		$model=new OmmuTags('search');
		$model->unsetAttributes();	// clear any default values
		if(isset($_GET['OmmuTags'])) {
			$model->attributes=$_GET['OmmuTags'];
		}

		$columns = $model->getGridColumn($this->gridColumnTemp());

		$this->pageTitle = Yii::t('phrase', 'Global Tags');
		$this->pageDescription = '';
		$this->pageMeta = '';
		$this->render('/global_tag/admin_manage', array(
			'model'=>$model,
			'columns' => $columns,
		));
	}
490235
function (model, options) {
        this._index(model);
        if (!model.collection) model.collection = this;
        if (model.on) model.on('all', this._onModelEvent, this);
    }
243069
def register_all_models(self, module_instance, exclude_name_list=[]):
        
        for class_instance in class_enumerator(module_instance, exclude_name_list):
            if is_inherit_from_model(class_instance):
                self.register(class_instance)
551143
def SetModel( self, model, adapter=None ):
        """"""
        self.model = model
        if adapter is not None:
            self.adapter = adapter
        self.UpdateDrawing()
930408
function(models, options) {
            options = _.defaults(options || {}, {
                totalCount: false
            });

            // Manage {list:[], n:0} for infinite list
            if (_.size(models) == 2
            && models.list != null && models.n != null) {
                this._totalCount = models.n;
                return this.reset(models.list, options);
            }

            // Remove reference
            for (var i = 0, length = this.models.length; i < length; i++) {
                this._removeReference(this.models[i], options);
            }
            options.previousModels = this.models;
            this.options.startIndex = 0;
            this.models = [];
            this._byId = {};
            if (options.totalCount) this._totalCount = null;
            this.add(models, _.extend({silent: true}, options || {}));
            options = _.defaults(options || {}, {
                silent: false
            });
            if (!options.silent) this.trigger('reset', this, options);
            return this;
        }
394492
def prepare_models(self):
        
        if self.database_config:
            for model in (self.options.queue_model, self.options.error_model):
                model.database.reset(**self.database_config)
689946
public function actionAdmin()
	{
		$model=new Post('search');
		if(isset($_GET['Post']))
			$model->attributes=$_GET['Post'];
		$this->render('admin',array(
			'model'=>$model,
		));
	}
1052247
def reload_models
      models.each do |m| 
        unless m.marked_for_destruction?
          m.reload if m.respond_to?(:reload)
        end
      end
    end
189432
public function actionManage() 
	{
		$setting = OmmuSettings::model()->findByPk(1);

		$model=new OmmuLanguages('search');
		$model->unsetAttributes();	// clear any default values
		if(isset($_GET['OmmuLanguages'])) {
			$model->attributes=$_GET['OmmuLanguages'];
		}

		$columns = $model->getGridColumn($this->gridColumnTemp());

		$this->pageTitle = Yii::t('phrase', 'Language Settings');
		$this->pageDescription = Yii::t('phrase', 'The layout of your social network includes hundreds of phrases of text which are stored in a language pack. SocialEngine comes with an English pack which is the default when you first install the platform. If you want to change any of these phrases on your social network, you can edit the pack below. If you want to allow users to pick from multiple languages, you can also create additional packs below. If you have multiple language packs, the pack you\'ve selected as your "default" will be the language that displays if a user has not selected any other language. Note: You can not delete the default language. To edit a language\'s details, click its name.');
		$this->pageMeta = '';
		$this->render('admin_manage', array(
			'model'=>$model,
			'columns' => $columns,
			'setting' => $setting,
		));
	}
1176216
public void setModels(java.util.Collection<ModelSummary> models) {
        if (models == null) {
            this.models = null;
            return;
        }

        this.models = new java.util.ArrayList<ModelSummary>(models);
    }
156569
def auto_register_search_models():
    """"""
    for config in models_config.get_all_configs():
        if config.disable_search_index:
            continue

        search.register(
            config.model.objects.get_queryset(),
            ModelSearchAdapter,
            fields=config.search_fields,
            exclude=config.search_exclude_fields,
        )