コード例 #1
0
ファイル: ModalHelper.php プロジェクト: cmnworks/Cakestrap
 /**
  * This method will merge the default modal helper
  * options and user-provided options.
  *
  * @param array $options
  * @return object $this
  */
 public function options($options = [])
 {
     parent::options($options);
     $this->_options['visibility'] = 'fade out';
     $this->_options['id'] = 'id_' . mt_rand(1, 12345);
     if ((int) $this->_options['show'] == 1) {
         $this->_options['visibility'] = 'fade in';
     }
     return $this;
 }