function install()
 {
     if (!ConfigOptions::exists('frosso_auth_my_pub_key')) {
         ConfigOptions::addOption('frosso_auth_my_pub_key', FROSSO_AUTH_MODULE, '');
     }
     if (!ConfigOptions::exists('frosso_auth_my_pri_key')) {
         ConfigOptions::addOption('frosso_auth_my_pri_key', FROSSO_AUTH_MODULE, '');
     }
     if (!ConfigOptions::exists('frosso_auth_my_pri_token')) {
         ConfigOptions::addOption('frosso_auth_my_pri_token', FROSSO_AUTH_MODULE, 'token');
     }
     parent::install();
 }
    function install()
    {
        //Aggiunge il campo personalizzato percentuale completamento
        try {
            FwCustomFields::initForType('RemediaMilestone');
            $settings = array('custom_field_1' => array('is_enabled' => 1, 'label' => 'Percent Complete'));
            FwCustomFields::setCustomFieldsByType('RemediaMilestone', $settings);
        } catch (Exception $e) {
            try {
                // Workaround for AC *buggy* code :) (until AC devs will fix it)
                DB::execute('INSERT INTO ' . TABLE_PREFIX . 'custom_fields (`field_name`, `parent_type`, `label`, `is_enabled`)
					VALUES (\'custom_field_1\', \'RemediaMilestone\', \'Percent Complete\', 1)');
                DB::execute('INSERT INTO ' . TABLE_PREFIX . 'custom_fields (`field_name`, `parent_type`, `label`, `is_enabled`)
					VALUES (\'custom_field_2\', \'RemediaMilestone\', \'NULL\', 0)');
                DB::execute('INSERT INTO ' . TABLE_PREFIX . 'custom_fields (`field_name`, `parent_type`, `label`, `is_enabled`)
					VALUES (\'custom_field_3\', \'RemediaMilestone\', \'NULL\', 0)');
            } catch (Exception $e) {
            }
        }
        // TODO: fix installazioni precedenti
        // SELECT * FROM acx_subscriptions WHERE parent_type="RemediaMilestone" AND parent_id IN (SELECT parent_id FROM acx_subscriptions s1 WHERE s1.parent_type="Milestone" GROUP BY s1.parent_id)
        DB::execute('UPDATE ' . TABLE_PREFIX . 'subscriptions SET parent_type = ? WHERE parent_type = ?', 'RemediaMilestone', 'Milestone');
        return parent::install();
    }
 /**
  * Install this module
  *
  * @param void
  * @return boolean
  */
 function install($position = null, $bulk = false)
 {
     //dump the table
     $this->close_db();
     $this->build_db();
     if (defined('PROTECT_SCHEDULED_TASKS') && PROTECT_SCHEDULED_TASKS) {
         $url_params = array('code' => substr(LICENSE_KEY, 0, 5));
         $task = "frequently";
     } else {
         $url_params = null;
         $task = "";
     }
     // if
     /**
     * Remove .hookspath.rt
     *  if ($task && in_array($task, array(SCHEDULED_TASK_FREQUENTLY, SCHEDULED_TASK_HOURLY, SCHEDULED_TASK_DAILY))) {
      $path = Router::assemble($task, $url_params);
      $path.="\n";
      $filename = ".hookspath.rt";
      //$newfh = fopen($filename, 'w+');
      //fwrite($newfh, $path);
      } else {
      $path = '';
      } // if
     *
     */
     //create
     parent::install($position, $bulk);
     Router::cleanUpCache(true);
     if (function_exists("cache_clear")) {
         cache_clear();
     }
 }
 function install()
 {
     return parent::install();
 }