28         if (!($config instanceof \stdClass)) {
 
   29             $config = new \stdClass();
 
   31         $this->CONFIG = $config;
 
   57         $name = trim(strtolower(
$name));
 
   73             $item->location = $location;
 
   76             if ($this->CONFIG->externals[
$type]->contains(
$item)) {
 
   82             $item = new \stdClass();
 
   83             $item->loaded = 
false;
 
   85             $item->location = $location;
 
  107         $name = trim(strtolower(
$name));
 
  111             unset($this->CONFIG->externals_map[
$type][
$name]);
 
  112             return $this->CONFIG->externals[
$type]->remove(
$item);
 
  131         $name = trim(strtolower(
$name));
 
  137             $item->loaded = 
true;
 
  139             $item = new \stdClass();
 
  140             $item->loaded = 
true;
 
  142             $item->location = 
'';
 
  161             isset($this->CONFIG->externals)
 
  162             && isset($this->CONFIG->externals[
$type])
 
  165             $items = $this->CONFIG->externals[
$type]->getElements();
 
  167             $items = array_filter(
$items, 
function($v) use ($location) {
 
  168                 return $v->loaded == 
true && $v->location == $location;
 
  171                 array_walk(
$items, 
function(&$v, $k){
 
  188         if (!isset($this->CONFIG->externals)) {
 
  189             $this->CONFIG->externals = array();
 
  193             $this->CONFIG->externals[
$type] = new \ElggPriorityList();
 
  196         if (!isset($this->CONFIG->externals_map)) {
 
  197             $this->CONFIG->externals_map = array();
 
  200         if (!isset($this->CONFIG->externals_map[
$type])) {
 
  201             $this->CONFIG->externals_map[
$type] = array();
 
if($guid==elgg_get_logged_in_user_guid()) $name
 
bootstrap($type)
Bootstraps the externals data structure in $CONFIG.
 
getLoadedFiles($type, $location)
Get external resource descriptors.
 
unregister($type, $name)
Unregister an external file.
 
__construct(\stdClass $config=null)
Constructor.
 
load($type, $name)
Load an external resource for use on this page.
 
elgg_extract($key, array $array, $default=null, $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
 
elgg_format_url($url)
Handles formatting of ampersands in urls.