/** * Modal * @param stdClass $config * @return modal */ public function modal(\stdClass $config) { return ModalAbstract::factory($config)->build(); }
/** * @return Modal */ public function render() { return $this->_modal->render(); }
/** * * @param type $name * @param type $value * @return type * @throws IllegalArgumentException */ public function __set($name, $value) { $dic = array('options' => array('backdrop', 'keyboard', 'show', 'remote'), 'events' => array('show', 'shown', 'hide', 'hidden')); if (in_array($dic['options'], $name)) { return $this->options('data-' . $name, $value); } if (in_array($dic['events'], $name)) { return $this->events($name); } # Lança excetion caso a opção ou evento não seja suportada. parent::__set($name, $value); }