Example #1
0
 /**
  * Return a sequence with the items separated by spaces
  *
  * @param mixed $args_array \MUtil_Ra::args input
  * @return \self
  */
 public static function createSpaced($args_array = null)
 {
     // BUG FIX: this function used to be called spaced() just
     // like all other static HtmlInterface element creation
     // functions, but as a sequence can contain a sequence
     // this lead to unexpected behaviour.
     $args = \MUtil_Ra::args(func_get_args());
     $seq = new self($args);
     if (!isset($args['glue'])) {
         $seq->setGlue(' ');
     }
     return $seq;
 }