function __construct() { parent::__construct(); $model =& JModel::getInstance('Configuration', 'JDefenderModel'); $this->_params = new JParameter($model->getIni()); require_once JPATH_ROOT . DS . 'administrator' . DS . 'components' . DS . 'com_jdefender' . DS . 'lib' . DS . 'utils' . DS . 'jd_extension_resolver.php'; }
/** * Class constructor * * @param string $xmlPath XML content */ public function __construct($xmlPath = '') { parent::__construct(); if (!empty($xmlPath)) { $this->loadManifestFromXML($xmlPath); } }
public function __construct() { parent::__construct(); $lang = JFactory::getLanguage(); $lang->load('com_redform', JPATH_SITE . DS . 'components' . DS . 'com_redform'); $lang->load('com_redform', JPATH_SITE, null, true); }
/** * Constructor activating the default information of the class * * @access protected */ function __construct() { parent::__construct(); $document =& WFDocument::getInstance(); // Load Extensions Object $document->addScript(array('extensions')); }
/** * Constructor. * * @param null $properties */ public function __construct($properties = null) { $this->runTime = microtime(true); $this->setupLog(); JLog::add('|¯¯¯ Starting'); parent::__construct($properties); }
function __construct($p = array()) { parent::__construct($p); if (is_string($this->get('params'))) { $this->set('params', oseJson::decode($this->get('params'))); } }
function __construct($filename) { parent::__construct(); jimport('joomla.filesystem.file'); jimport('joomla.filesystem.folder'); $this->_filename = $filename; }
public function __construct($properties = null) { if (!is_object($this->state)) { $this->state = new JObject(); } $this->options = array(); parent::__construct($properties); }
function __construct() { parent::__construct(); $this->rules = array(); $this->operations = array(); $this->values = array(); $this->results = array(); }
function __construct($projectid = null) { parent::__construct(); $this->_db = JFactory::getDBO(); if ($projectid) { $this->setProjectId($projectid); } }
function __construct($taskName = 'All') { parent::__construct(); $this->taskName = $taskName; $this->listeners = array(); $model =& JModel::getInstance('Configuration', 'JDefenderModel'); $this->_jd_options = new JParameter($model->getIni()); }
/** * Public contructor. Automatically initializes the object with the status and quirks. * * @access public * @return AkeebaHelperStatus */ public function __construct() { parent::__construct(); $status = AEUtilQuirks::get_folder_status(); $this->outputWritable = $this->status['output']; $this->tempWritable = $this->status['temporary']; $this->status = AEUtilQuirks::get_status(); $this->quirks = AEUtilQuirks::get_quirks(); }
/** * Constructor activating the default information of the class * * @access protected */ public function __construct($config = array()) { parent::__construct(); // set document title if (isset($config['title'])) { $this->setTitle($config['title']); } $this->setProperties($config); }
/** * Constructor. Initialises variables. * * @param mixed $properties Either and associative array or another * object to set the initial properties of the object. */ public function __construct($properties = null) { // Construct JObject parent::__construct($properties); // Initialise vars if (empty($this->data)) { $this->reset(); } }
/** * Public contructor. Automatically initializes the object with the status and quirks. * * @access public * @return AkeebaHelperStatus */ public function __construct() { parent::__construct(); $status = Factory::getConfigurationChecks()->getFolderStatus(); $this->outputWritable = $this->status['output']; $this->tempWritable = $this->status['temporary']; $this->status = Factory::getConfigurationChecks()->getShortStatus(); $this->quirks = Factory::getConfigurationChecks()->getDetailedStatus(); }
function __construct($context) { parent::__construct(); jimport('joomla.error.log'); if (JString::substr($context, -4) != '.php') { $context .= '.php'; } else { $context = 'mighty_defender_log.php'; } $this->_context = $context; $this->_loggingEnabled = defined(JDEBUG) && JDEBUG; }
function __construct($filePatterns = array(), $excludedDirs = array(), $excludedFiles = array(), $excludedDirPatterns = array()) { parent::__construct(); $this->excludedDirs = array(); $this->excludedFiles = array(); $this->permittedFilePatterns = array(); $this->excludedDirPatterns = array(); $this->addFilePattern($filePatterns); $this->addExcludeDirs($excludedDirs); $this->addExcludeFiles($excludedFiles); $this->addExcludedDirPatterns($excludedDirPatterns); }
function __construct($username, $password, $server) { parent::__construct(); $this->username = $username; $this->password = $password; $this->server = $server; $this->messageQueue = array(); // include the Jabber class require_once JPATH_ROOT . DS . 'administrator' . DS . 'components' . DS . 'com_jdefender' . DS . 'lib' . DS . 'alerts' . DS . 'jabber' . DS . 'class_Jabber.php'; // create an instance of the Jabber class $this->jabber = new Jabber($display_debug_info = false); $this->_initialize(); }
function __construct() { parent::__construct(); $this->_ignores = array(); $this->_accepts = array(); $this->_deleteLogs = array(); $this->_fixes = array(); $this->_exceptions = array(); $this->_blocks = array(); $this->_quarantines = array(); jimport('joomla.filesystem.file'); jimport('joomla.filesystem.folder'); jimport('joomla.application.component.model'); }
/** * Constructor activating the default information of the class * * @access public */ function __construct($config = array()) { // Call parent parent::__construct(); // get plugin name $plugin = JRequest::getCmd('plugin'); // check plugin is valid //$this->checkPlugin($plugin) or die('RESTRICTED'); // set plugin name $this->set('name', $plugin); // set config if (!array_key_exists('type', $config)) { $config['type'] = 'standard'; } if (!array_key_exists('base_path', $config)) { $config['base_path'] = WF_EDITOR_PLUGINS . '/' . $plugin; } if (!defined('WF_EDITOR_PLUGIN')) { define('WF_EDITOR_PLUGIN', $config['base_path']); } if (!array_key_exists('view_path', $config)) { $config['view_path'] = WF_EDITOR_PLUGINS . '/' . $plugin; } if (!array_key_exists('layout', $config)) { $config['layout'] = 'default'; } if (!array_key_exists('template_path', $config)) { $config['template_path'] = WF_EDITOR_PLUGIN . '/tmpl'; } // backwards compatability if (!array_key_exists('colorpicker', $config)) { $config['colorpicker'] = in_array($plugin, array('imgmanager_ext', 'caption', 'mediamanager')); } // backwards compatability if (!array_key_exists('mediaplayer', $config)) { $config['mediaplayer'] = false; } $this->setProperties($config); }
/** * Constructor. Initialises variables. * * @param mixed $properties - See JObject::__construct */ public function __construct($properties = null) { // Construct JObject parent::__construct($properties); // Initialise vars if (empty($this->report)) { // Create a new report require_once JPATH_COMPONENT_ADMINISTRATOR . '/models/report.php'; $this->report = new JEDcheckerReport($properties); } // Try to load the params if (empty($this->params)) { $this->params = $this->loadParams(); } }
public function __construct($context) { $this->_jtemplate = $context; parent::__construct(); JHtmlBootstrap::loadCss($includeMaincss = true, $this->_jtemplate->direction); JHtmlBootstrap::framework(); $this->_jparams = $this->_jtemplate->params ? $this->_jtemplate->params : JFactory::getApplication()->getTemplate(true)->params; $this->_google = new stdClass(); $this->setShowcase(); $this->setBackground(); $this->_mobile = Avatar::isHandleDevice(); $this->_responsive = $this->_jparams->get('active_responsive') ? $this->_jparams->get('active_responsive') : false; $this->_jquery = $this->_jparams->get('load_jquery') ? $this->_jparams->get('load_jquery') : false; $this->_optimize = $this->_jparams->get('optimize'); }
public function __construct($params) { parent::__construct(); $app = JFactory::getApplication(); $key = $app->input->get('key', '', 'STRING'); if (empty($key)) { $key = $app->input->post->get('key', '', 'STRING'); } if (empty($key)) { $this->set('auth_method', $params->get('auth_method', 'username')); $this->set('auth_method', $params->get('auth_method', 'password')); $this->set('auth_method', $params->get('auth_method', 'login')); } else { $this->set('auth_method', $params->get('auth_method', 'key')); } $this->set('domain_checking', $params->get('domain_checking', 1)); }
/** * Constructor * * @return void * @since 1.5.5 */ public function __construct() { parent::__construct(); $config = JoomConfig::getInstance(); $this->realname = $config->get('jg_realname') ? true : false; $this->globalfrom = $config->get('jg_msg_global_from') ? true : false; // Predefined message send modes $this->addMode(array('name' => 'upload', 'recipients' => explode(',', $config->get('jg_msg_upload_recipients')), 'type' => $config->get('jg_msg_upload_type'))); $this->addMode(array('name' => 'download', 'recipients' => explode(',', $config->get('jg_msg_download_recipients')), 'type' => $config->get('jg_msg_download_type'))); $this->addMode(array('name' => 'zipdownload', 'recipients' => explode(',', $config->get('jg_msg_download_recipients')), 'type' => $config->get('jg_msg_download_type'))); $this->addMode(array('name' => 'comment', 'recipients' => explode(',', $config->get('jg_msg_comment_recipients')), 'type' => $config->get('jg_msg_comment_type'))); $this->addMode(array('name' => 'nametag', 'recipients' => explode(',', $config->get('jg_msg_nametag_recipients')), 'type' => $config->get('jg_msg_nametag_type'))); $this->addMode(array('name' => 'report', 'recipients' => explode(',', $config->get('jg_msg_report_recipients')), 'type' => $config->get('jg_msg_report_type'))); $this->_modes['send2friend']['recipients'] = array(); $this->_modes['send2friend']['type'] = 1; $this->_modes['rejectimg']['recipients'] = array(); $this->_modes['rejectimg']['type'] = $config->get('jg_msg_rejectimg_type'); $this->_modes['default']['recipients'] = array(); $this->_modes['default']['type'] = 2; }
/** * Public constructor * */ function __construct() { parent::__construct(); // Import Smart algorithm magic numbers if (!class_exists('JoomlapackModelRegistry')) { jpimport('models.registry', true); } $configuration =& JoomlapackModelRegistry::getInstance(); if (!defined('mnMaxExecTimeAllowed')) { define('mnMaxExecTimeAllowed', $configuration->get('mnMaxExecTimeAllowed')); } if (!defined('mnMinimumExectime')) { define('mnMinimumExectime', $configuration->get('mnMinimumExectime')); } if (!defined('mnExectimeBiasPercent')) { define('mnExectimeBiasPercent', $configuration->get('mnExectimeBiasPercent') / 100); } if (!defined('mnMaxOpsPerStep')) { define('mnMaxOpsPerStep', $configuration->get('mnMaxOpsPerStep')); } unset($configuration); }
/** * * @param TableRule $rule */ function __construct($rule = null) { parent::__construct(); $this->_rule = $rule; }
public function __construct() { parent::__construct(); }
/** * Class constructor * * @access protected * @param array $options Associative array of options */ function __construct($options = array()) { parent::__construct(); if (array_key_exists('lineend', $options)) { $this->setLineEnd($options['lineend']); } if (array_key_exists('charset', $options)) { $this->setCharset($options['charset']); } if (array_key_exists('language', $options)) { $this->setLanguage($options['language']); } if (array_key_exists('direction', $options)) { $this->setDirection($options['direction']); } if (array_key_exists('tab', $options)) { $this->setTab($options['tab']); } if (array_key_exists('link', $options)) { $this->setLink($options['link']); } if (array_key_exists('base', $options)) { $this->setBase($options['base']); } }
function __construct($id) { $this->_db = JFactory::getDBO(); $query = $this->_db->getQuery(true); if (isset($id['map']) && !empty($id['map'])) { // select from maps $query->select(' jmp.* '); $query->from(' #__joaktree_maps jmp '); $query->where(' jmp.id = ' . (int) $id['map'] . ' '); $this->_db->setQuery($query); $tmp = $this->_db->loadAssoc(); if ($tmp) { $params = (array) json_decode($tmp['params']); unset($tmp['params']); $this->mapId = $id['map']; $this->params = array_merge($tmp, $params); } } else { if (isset($id['location']) && !empty($id['location'])) { // select from locations $query->clear(); $query->select(' jln.latitude, jln.longitude '); $query->from(' #__joaktree_locations jln '); $query->where(' jln.id = ' . (int) $id['location'] . ' '); $this->_db->setQuery($query); $this->params = $this->_db->loadAssoc(); // select from trees $query->clear(); $query->select(' jte.app_id '); $query->from(' #__joaktree_trees jte '); $query->where(' jte.id = ' . (int) $id['tree'] . ' '); $this->_db->setQuery($query); $this->params['app_id'] = $this->_db->loadResult(); $this->params['selection'] = 'location'; $this->params['service'] = 'interactivemap'; $this->params['tree_id'] = $id['tree']; $this->params['loc_id'] = $id['location']; $this->params['distance'] = $id['distance']; // zoom switch ($this->params['distance']) { case 0: // continue // continue case 1: // continue // continue case 2: // continue // continue case 5: $this->params['zoomlevel'] = 11; break; case 10: $this->params['zoomlevel'] = 10; break; case 20: $this->params['zoomlevel'] = 9; break; case 50: // continue // continue default: $this->params['zoomlevel'] = 8; break; } } else { if (isset($id['person']) && !empty($id['person'])) { // select from persons admin $query->select(' jan.* '); $query->from(' #__joaktree_admin_persons jan '); $query->where(' jan.app_id = ' . (int) $id['app'] . ' '); $query->where(' jan.id = ' . $this->_db->quote($id['person']) . ' '); $this->_db->setQuery($query); $this->params = $this->_db->loadAssoc(); $this->params['selection'] = 'person'; $this->params['service'] = $this->params['map'] == 1 ? 'staticmap' : ($this->params['map'] == 2 ? 'interactivemap' : ''); unset($this->params['map']); $this->params['tree_id'] = $this->params['default_tree_id']; unset($this->params['default_tree_id']); $this->params['person_id'] = $this->params['id']; unset($this->params['id']); $this->params['relations'] = 0; $this->params['period_start'] = 0; $this->params['period_end'] = 0; unset($this->params['published']); unset($this->params['access']); unset($this->params['living']); unset($this->params['page']); unset($this->params['robots']); } } } if (isset($this->params)) { $this->service = MBJService::getInstance($this->params); } parent::__construct(); }
/** * Constructor activating the default information of the class * * @access public */ public function __construct($config = array()) { parent::__construct(); // set extension properties $this->setProperties($config); }