コード例 #1
0
 protected function validate_args($args, $exclude = array())
 {
     // back compat
     if (isset($args['dismissable'])) {
         if (!isset($args['dismissible'])) {
             $args['dismissible'] = $args['dismissable'];
         }
         unset($args['dismissable']);
     }
     $args = parent::validate_args($args, $exclude);
     return $args;
 }
コード例 #2
0
 protected function validate_args($args, $exclude = array())
 {
     $exclude[] = 'tabindex';
     $exclude[] = 'align';
     $args = parent::validate_args($args, $exclude);
     if (is_string($args['align'])) {
         $args['align'] = strtolower($args['align']);
     }
     if (!in_array($args['align'], array('left', 'center', 'right'))) {
         $args['align'] = false;
     }
     // type whitelist check is made later in the display() function to allow different types to use in a filter
     return $args;
 }
コード例 #3
0
 protected function validate_args($args, $exclude = array())
 {
     $args = parent::validate_args($args, $exclude);
     return $args;
 }
コード例 #4
0
 protected function validate_args($args, $exclude = array())
 {
     $exclude[] = 'value';
     $exclude[] = 'maxlength';
     $exclude[] = 'tabindex';
     $args = parent::validate_args($args, $exclude);
     // type whitelist check is made later in the display() function to allow different types to use in a filter
     return $args;
 }