/**
  * Returns all portfolios available
  * 
  * @return array
  */
 public static function all()
 {
     $conf = Chamilo::path('/main/inc/conf/portfolio.conf.php');
     if (!is_readable($conf)) {
         return array();
     }
     include $conf;
     return isset($portfolios) ? $portfolios : array();
 }
 public function run()
 {
     $this->synch(Chamilo::path('/main'));
     ksort($this->map);
 }
 /**
  * Returns the file path based on the key.
  * 
  * @param any Identifier for the variable
  * @return string Path of the file where this 
  *                variable is/should-be stored
  */
 static function path($key = '')
 {
     return Chamilo::path('archive/temp/cache/' . self::key($key));
 }