Beispiel #1
0
 public function add($name, $content, $type = AssetQueue::TYPE_DEFAULT)
 {
     if ($name == self::LIB_BOOTSTRAP_NAME && $this->existed(self::LIB_JQUERY_UI_NAME)) {
         parent::add(self::LIB_JQUERY_UI_BOOTSTRAP_NAME, _kExternalLink(self::LIB_JQUERY_UI_BOOTSTRAP_NAME), self::TYPE_RAW);
     }
     parent::add($name, $content, $type);
 }
Beispiel #2
0
 public function add($name, $content, $type = AssetQueue::TYPE_DEFAULT)
 {
     if (empty($name)) {
         $name = count($this->queue);
     }
     if (is_a($content, CallableObject::class)) {
         $type = self::TYPE_CALLABLE_OBJECT;
     }
     parent::add($name, $content, $type);
 }