/** * Contstructs the class with the given View and settings * Also merges $settings into the root $_options - useful for Entities that are 'disposable' (are created at run-time) * @param View $view * @param mixed $settings * @return BootstrapHelperEntity */ public function __construct(View $view, $settings = array()) { parent::__construct($view, $settings); $this->_view = $view; $this->_settings = $settings; #things passed to $settings can be used to seed $_options #useful for disposable entity classes if (!empty($settings) && is_array($settings)) { $this->mergeOptions(null, $settings); $this->_options = $settings; } return $this; }