Пример #1
0
 /**
  * Allocate a new HTML node ID.
  *
  * @return string
  */
 private static function makeUniqueID()
 {
     if (!isset(self::$idPrefix)) {
         self::$idPrefix = 'rpbchessboard-' . uniqid() . '-';
     }
     ++self::$idCounter;
     return self::$idPrefix . self::$idCounter;
 }
Пример #2
0
 public function __construct($atts, $content)
 {
     parent::__construct($atts, $content);
     $this->loadDelegateModel('Common/DefaultOptions');
 }
Пример #3
0
 public function __construct($atts, $content)
 {
     parent::__construct($atts, $content);
     $this->loadTrait('DefaultOptions');
 }