Exemple #1
0
 /**
  * Removes data/procedures associated with this class.
  *
  * @param boolean $confirmation Defaults to FALSE. Set this to TRUE as a confirmation.
  *    If this is FALSE, nothing will happen; and this method returns FALSE.
  *
  * @return boolean TRUE if successfully uninstalled.
  *
  * @see deps_x_xd_v141226_dev::___uninstall___()
  *
  * @throws exception If invalid types are passed through arguments list.
  */
 public static function ___uninstall___($confirmation = FALSE)
 {
     if (!is_bool($confirmation)) {
         throw new exception(sprintf(xd_v141226_dev::__('Invalid arguments: `%1$s`'), print_r(func_get_args(), TRUE)));
     }
     if (!$confirmation) {
         return FALSE;
     }
     // Added security.
     delete_option('xd__deps__last_ok');
     delete_option('xd__deps__notice__dismissals');
     if (!class_exists('deps_x_xd_v141226_dev')) {
         require_once dirname(__FILE__) . '/deps-x.php';
     }
     $x = new deps_x_xd_v141226_dev();
     return $x->___uninstall___(TRUE);
 }