aliroComponentManager Class Reference

Inheritance diagram for aliroComponentManager:

aliroFriendlyBase aliroComponentAdminManager aliroComponentUserManager

List of all members.

Protected Member Functions

 __construct ($component, $system, $version)
 __clone ()
 noMagicQuotes ()

Protected Attributes

 $name = ''
 $formalname = ''
 $barename = ''
 $system = ''
 $system_version = ''

Private Member Functions

remove_magic_quotes ($array, $exclude='')


Detailed Description

Component common base class for both user and admin sides

Definition at line 108 of file aliroComponentManager.php.


Constructor & Destructor Documentation

aliroComponentManager::__construct ( component,
system,
version 
) [protected]

Reimplemented in aliroComponentAdminManager.

Definition at line 115 of file aliroComponentManager.php.

References $system, name, and system.

00115                                                                    {
00116         $this->name = $component->name;
00117         $this->formalname = $component->option;
00118         $parts = explode('_', $this->formalname);
00119         $this->barename = isset($parts[1]) ? $parts[1] : $this->formalname;
00120         $this->system = $system;
00121         $this->system_version = $version;
00122         if(file_exists($this->absolute_path."/components/$this->formalname/language/".$this->getCfg('lang').'.php')) {
00123             require_once($this->absolute_path."/components/$this->formalname/language/".$this->getCfg('lang').'.php');
00124         }
00125         else if (file_exists($this->absolute_path."/components/$this->formalname/language/english.php")) {
00126             require_once($this->absolute_path."/components/$this->formalname/language/english.php");
00127         }
00128     }


Member Function Documentation

aliroComponentManager::__clone (  )  [protected]

Definition at line 130 of file aliroComponentManager.php.

00130                                   {
00131         // Enforce singleton
00132     }

aliroComponentManager::noMagicQuotes (  )  [protected]

Definition at line 134 of file aliroComponentManager.php.

References $_REQUEST, and remove_magic_quotes().

Referenced by aliroComponentUserManager::activate(), and aliroComponentAdminManager::activate().

00134                                         {
00135         // Is magic quotes on?
00136         if (get_magic_quotes_gpc()) {
00137             // Yes? Strip the added slashes
00138             $_REQUEST = $this->remove_magic_quotes($_REQUEST);
00139             $_GET = $this->remove_magic_quotes($_GET);
00140             $_POST = $this->remove_magic_quotes($_POST);
00141             $_FILES = $this->remove_magic_quotes($_FILES, 'tmp_name');
00142         }
00143     }

& aliroComponentManager::remove_magic_quotes ( array,
exclude = '' 
) [private]

Definition at line 145 of file aliroComponentManager.php.

Referenced by noMagicQuotes().

00145                                                                 {
00146         foreach ($array as $k => &$v) {
00147             if (is_array($v)) $v = $this->remove_magic_quotes($v, $exclude);
00148             // Did apply stripslashes twice, why?  Removed to see what happens
00149             elseif ($k != $exclude) $v = stripslashes($v);
00150         }
00151         return $array;
00152     }


Member Data Documentation

aliroComponentManager::$name = '' [protected]

Reimplemented in aliroComponentAdminManager.

Definition at line 109 of file aliroComponentManager.php.

aliroComponentManager::$formalname = '' [protected]

Definition at line 110 of file aliroComponentManager.php.

aliroComponentManager::$barename = '' [protected]

Definition at line 111 of file aliroComponentManager.php.

aliroComponentManager::$system = '' [protected]

aliroComponentManager::$system_version = '' [protected]

Definition at line 113 of file aliroComponentManager.php.


The documentation for this class was generated from the following file:

Generated on Wed May 14 13:01:58 2008 for ALIRO by  doxygen 1.5.5