コード例 #1
0
ファイル: Ol.php プロジェクト: 8fold/html5-generator-php
 protected static function prepare($config)
 {
     // Invalid type given, unset to use default user agent setting
     if (isset($config['type']) && !in_array($config['type'], Ol::validTypes())) {
         unset($config['type']);
     }
     return $config;
 }
コード例 #2
0
 /**
  * http://www.w3.org/TR/html5/grouping-content.html#the-ol-element
  *
  * Optional keys
  * reversed: true|false (default is false)
  * start: Starting number (or letter) of list.
  * type: decimal|lower-alpha|upper-alpha|lower-roman|upper-roman
  * 
  * @param  array  $config [description]
  * @return [type]         [description]
  */
 public static function ol($config = [])
 {
     return Ol::build($config);
 }