/** * plgSystemAutotweetContent * * @param string &$subject Param * @param object $params Param */ public function __construct(&$subject, $params) { parent::__construct($subject, $params); $pluginParams = $this->pluginParams; // Joomla article specific params $this->categories = $pluginParams->get('categories', ''); $this->excluded_categories = $pluginParams->get('excluded_categories', ''); $this->post_modified = (int) $pluginParams->get('post_modified', 0); $this->show_category = (int) $pluginParams->get('show_category', 0); $this->show_hash = (int) $pluginParams->get('show_hash', 0); $this->tags_as_hash = (int) $pluginParams->get('tags_as_hash', 0); $this->use_text = (int) $pluginParams->get('use_text', 0); $this->use_text_count = $pluginParams->get('use_text_count75', SharingHelper::MAX_CHARS_TITLE); $this->static_text = strip_tags($pluginParams->get('static_text', '')); $this->static_text_pos = (int) $pluginParams->get('static_text_pos', 1); $this->static_text_source = (int) $pluginParams->get('static_text_source', 0); $this->metakey_count = (int) $pluginParams->get('metakey_count', 1); $this->accesslevels = $pluginParams->get('accesslevels', ''); $this->interval = (int) $pluginParams->get('interval', 180); $this->post_old = (int) $pluginParams->get('post_old', 0); $this->post_old_date = $pluginParams->get('post_old_date', '0000-00-00'); $this->polling = (int) $pluginParams->get('polling', 0); $this->post_featured_only = (int) $pluginParams->get('post_featured_only', 0); // Correct value if value is under the minimum if ($this->interval < 180) { $this->interval = 180; } $this->extension_option = 'com_content'; }
/** * plgContentAutotweetPost * * @param string &$subject Param * @param object $params Param */ public function __construct(&$subject, $params) { parent::__construct($subject, $params); $pluginParams = $this->pluginParams; // Joomla article specific params $this->categories = $pluginParams->get('categories', ''); $this->excluded_categories = $pluginParams->get('excluded_categories', ''); $this->post_modified = (int) $pluginParams->get('post_modified', 0); $this->show_category = (int) $pluginParams->get('show_category', 0); $this->show_hash = (int) $pluginParams->get('show_hash', 0); $this->use_text = (int) $pluginParams->get('use_text', 0); $this->use_text_count = $pluginParams->get('use_text_count75', SharingHelper::MAX_CHARS_TITLE); $this->static_text = strip_tags($pluginParams->get('static_text', '')); $this->static_text_pos = (int) $pluginParams->get('static_text_pos', 1); $this->static_text_source = (int) $pluginParams->get('static_text_source', 0); $this->metakey_count = (int) $pluginParams->get('metakey_count', 1); $this->interval = (int) $pluginParams->get('interval', 60); // Correct value if value is under the minimum if ($this->interval < 60) { $this->interval = 60; } }