library/Garp/Browsebox.php
public function getModel() {
        $model = new $this->_options['model']();
        foreach ($this->_options['bindings'] as $binding => $bindingOptions) {
            if (is_numeric($binding)) {
                $model->bindModel($bindingOptions);
            } elseif (is_string($binding)) {
                $model->bindModel($binding, $bindingOptions);
            }
        }
        return $model;
    }
public function getModel() {
        $model = new $this->_options['model']();
        foreach ($this->_options['bindings'] as $binding => $bindingOptions) {
            if (is_numeric($binding)) {
                $model->bindModel($bindingOptions);
            } elseif (is_string($binding)) {
                $model->bindModel($binding, $bindingOptions);
            }
        }
        return $model;
    }
public function getModel ( ) { $ model = new $ this -> _options [ 'model' ] ( ) ; foreach ( $ this -> _options [ 'bindings' ] as $ binding => $ bindingOptions ) { if ( is_numeric ( $ binding ) ) { $ model -> bindModel ( $ bindingOptions ) ; } elseif ( is_string ( $ binding ) ) { $ model -> bindModel ( $ binding , $ bindingOptions ) ; } } return $ model ; }
Retrieve a prepared model for this browsebox
@return Garp_Model
Retrieve a prepared model for this browsebox