Exemplo n.º 1
0
 /**
  * Returns a reference to a plugin object
  *
  * This method must be invoked as:
  * 		<pre>  $advlink =AdvLink::getInstance();</pre>
  *
  * @access	public
  * @return	JCE  The editor object.
  * @since	1.5
  */
 public static function getInstance($config = array())
 {
     if (!isset(self::$instance)) {
         self::$instance = new WFAggregatorExtension($config);
     }
     return self::$instance;
 }
Exemplo n.º 2
0
    /**
     * 
     * @return 
     */
    public function getAggregatorTemplate() {
        $tpl = '';

        $extension = WFAggregatorExtension::getInstance();

        foreach ($extension->getAggregators() as $aggregator) {
            $tpl .= '<fieldset class="media_option ' . $aggregator->getName() . '" id="' . $aggregator->getName() . '_options" style="display:none;"><legend>' . WFText::_($aggregator->getTitle()) . '</legend>';
            $tpl .= $extension->loadTemplate($aggregator->getName());
            $tpl .= '</fieldset>';
        }

        return $tpl;
    }
Exemplo n.º 3
0
 /**
  * Constructor activating the default information of the class
  *
  * @access	protected
  */
 function __construct()
 {
     parent::__construct(array('format' => 'video'));
 }
Exemplo n.º 4
0
 /**
  * Constructor activating the default information of the class
  *
  * @access	protected
  */
 function __construct()
 {
     parent::__construct(array('format' => 'maps'));
 }