Beispiel #1
0
 public function __construct()
 {
     require_once __DIR__ . '/helpers.php';
     $this->helpers = PlgSystemArticlesAnywhereHelpers::getInstance();
     $this->params = $this->helpers->getParams();
     $this->aid = JFactory::getUser()->getAuthorisedViewLevels();
 }
Beispiel #2
0
 public function __construct()
 {
     require_once __DIR__ . '/helpers.php';
     $this->helpers = PlgSystemArticlesAnywhereHelpers::getInstance();
     $this->params = $this->helpers->getParams();
     $this->params->protected_tags = array($this->params->article_tag);
 }
Beispiel #3
0
 public function __construct()
 {
     require_once __DIR__ . '/helpers.php';
     $this->helpers = PlgSystemArticlesAnywhereHelpers::getInstance();
     $this->params = $this->helpers->getParams();
     $this->config = JComponentHelper::getParams('com_content');
     $this->data = (object) array('article' => null, 'total' => 1, 'count' => 1, 'even' => 0, 'uneven' => 1, 'first' => 1, 'last' => 1);
 }
Beispiel #4
0
 public static function getInstance($params = 0)
 {
     if (!self::$instance) {
         self::$instance = new static();
     }
     if ($params) {
         self::$params = $params;
     }
     return self::$instance;
 }
Beispiel #5
0
 public function __construct()
 {
     require_once __DIR__ . '/helpers.php';
     $this->helpers = PlgSystemArticlesAnywhereHelpers::getInstance();
     $this->params = $this->helpers->getParams();
     $bts = '((?:<p(?: [^>]*)?>\\s*)?)((?:\\s*<br ?/?>\\s*)?)';
     $bte = '((?:\\s*<br ?/?>)?)((?:\\s*</p>)?)';
     $this->params->tags = '(' . preg_quote($this->params->article_tag, '#') . ')';
     $this->params->regex = '#' . $bts . '\\{' . $this->params->tags . '(?:(?:\\s|&nbsp;|&\\#160;)+([^\\}]*))?\\}' . $bte . '(.*?)' . $bts . '\\{/\\3\\}' . $bte . '#s';
     $this->params->breaks_start = $bts;
     $this->params->breaks_end = $bte;
     $this->aid = JFactory::getUser()->getAuthorisedViewLevels();
 }
Beispiel #6
0
 public function __construct(&$params)
 {
     $this->params = $params;
     $this->params->comment_start = '<!-- START: Articles Anywhere -->';
     $this->params->comment_end = '<!-- END: Articles Anywhere -->';
     $this->params->message_start = '<!--  Articles Anywhere Message: ';
     $this->params->message_end = ' -->';
     $this->params->article_tag = trim($this->params->article_tag);
     $this->params->message = '';
     $this->params->option = JFactory::getApplication()->input->get('option');
     $this->params->disabled_components = array('com_acymailing');
     require_once __DIR__ . '/helpers/helpers.php';
     $this->helpers = PlgSystemArticlesAnywhereHelpers::getInstance($params);
 }
Beispiel #7
0
 public function __construct()
 {
     require_once __DIR__ . '/helpers.php';
     $this->helpers = PlgSystemArticlesAnywhereHelpers::getInstance();
 }