示例#1
0
 /**
  * Modal
  * @param stdClass $config
  * @return modal
  */
 public function modal(\stdClass $config)
 {
     return ModalAbstract::factory($config)->build();
 }
示例#2
0
 /**
  * @return Modal
  */
 public function render()
 {
     return $this->_modal->render();
 }
示例#3
0
 /**
  *
  * @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);
 }