/** * Constructor * * @access public * @return null */ function __construct() { parent::Addon_builder_rating('rating'); // -------------------------------------------- // Default Preferences // -------------------------------------------- $this->default_preferences = array('can_delete_ratings' => array(), 'can_report_ratings' => array(), 'can_post_ratings' => array(), 'enabled_channels' => array('all'), 'quarantine_minimum' => 3, 'require_email' => 'n', 'use_captcha' => 'n'); // ------------------------------------- // Module Installed and What Version? // ------------------------------------- if ($this->database_version() == FALSE or $this->version_compare($this->database_version(), '<', RATING_VERSION) or !$this->extensions_enabled()) { return; } }