public function __construct() { require_once __DIR__ . '/helpers.php'; $this->helpers = plgSystemArticlesAnywhereHelpers::getInstance(); $this->params = $this->helpers->getParams(); $this->config = JComponentHelper::getParams('com_content'); }
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); }
public function __construct() { require_once __DIR__ . '/helpers.php'; $this->helpers = plgSystemArticlesAnywhereHelpers::getInstance(); $this->params = $this->helpers->getParams(); $this->aid = JFactory::getUser()->getAuthorisedViewLevels(); }
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); }
public static function getInstance($params = 0) { if (!self::$instance) { self::$instance = new static(); } if ($params) { self::$params = $params; } return self::$instance; }
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->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); }
public function __construct() { require_once __DIR__ . '/helpers.php'; $this->helpers = plgSystemArticlesAnywhereHelpers::getInstance(); $this->params = $this->helpers->getParams(); $bts = '((?:<p(?: [^>]*)?>)?)((?:\\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| |&\\#160;)+([^\\}]*))?\\}' . $bte . '(.*?)' . $bts . '\\{/\\3\\}' . $bte . '#s'; $this->params->breaks_start = $bts; $this->params->breaks_end = $bte; $db = JFactory::getDBO(); $selects = $db->getTableColumns('#__content'); if (is_array($selects)) { unset($selects['introtext']); unset($selects['fulltext']); $selects = array_keys($selects); $this->params->dbselects_content = $selects; } $this->aid = JFactory::getUser()->getAuthorisedViewLevels(); }
public function __construct() { require_once __DIR__ . '/helpers.php'; $this->helpers = plgSystemArticlesAnywhereHelpers::getInstance(); }