예제 #1
0
파일: flush_cache.php 프로젝트: nogsus/Elgg
<?php

/**
 * Flush all the caches
 */
elgg_invalidate_simplecache();
elgg_reset_system_cache();
_elgg_get_autoload_manager()->deleteCache();
system_message(elgg_echo('admin:cache:flushed'));
forward(REFERER);
예제 #2
0
파일: autoloader.php 프로젝트: nogsus/Elgg
/**
 * Register a classname to a file.
 *
 * @param string $class    The name of the class
 * @param string $location The location of the file
 *
 * @return bool true
 * @since 1.8.0
 */
function elgg_register_class($class, $location)
{
    _elgg_get_autoload_manager()->setClassPath($class, $location);
    return true;
}
예제 #3
0
파일: ElggPlugin.php 프로젝트: nogsus/Elgg
 /**
  * Registers the plugin's classes
  *
  * @throws PluginException
  * @return true
  */
 protected function registerClasses()
 {
     $classes_path = "{$this->path}/classes";
     if (is_dir($classes_path)) {
         _elgg_get_autoload_manager()->addClasses($classes_path);
     }
     return true;
 }