parseAttributes() 정적인 공개 메소드

Returns a space-delimited string with items of the $options array.
static public parseAttributes ( $options = [] ) : string
$options Array of options.
리턴 string Composed attributes.
예제 #1
0
 /**
  * Creates a link element for CSS stylesheets.
  *
  * @since version 0.85
  *
  * @param $url       String   of javascript file to include
  * @param $options   Array    of HTML attributes.
  *
  * @return string CSS link tag
  **/
 static function css($url, $options = array())
 {
     if (!isset($options['media'])) {
         $options['media'] = 'screen';
     }
     return sprintf('<link rel="stylesheet" type="text/css" href="%s" %s>', $url, Html::parseAttributes($options));
 }