1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-20 21:32:09 +02:00

(experimental changes) overall front-end pages and e_jslib.php load speed up (304 not modified tests passed), bugfixes, better headers, e_meta works fine with JS manager now

This commit is contained in:
secretr
2010-12-16 16:56:00 +00:00
parent 0e797fcc63
commit 6f49745358
5 changed files with 225 additions and 89 deletions

View File

@@ -670,7 +670,7 @@ class e_jsmanager
*
* @param string $mod core|plugin|theme|header|footer|header_inline|footer_inline|core_css|plugin_css|theme_css|other_css|inline_css
* @param integer $zone 1-5 - only used when in 'header','footer','header_inline' and 'footer_inline' render mod
* @param boolean $external exrernal file calls, only used when NOT in 'header_inline' and 'footer_inline' render mod
* @param boolean $external external file calls, only used when NOT in 'header_inline' and 'footer_inline' render mod
* @param boolean $return
* @return string JS content - only if $return is true
*/
@@ -1082,5 +1082,39 @@ class e_jsmanager
$core->setPref($key, $libs);
return $this;
}
/**
* Get current object data
* @return array
*/
public function getData()
{
$data = get_class_vars(__CLASS__);
unset($data['_instance'], $data['_in_admin']);
$kdata = array_keys($data);
$instance = self::getInstance();
$data = array();
foreach ($kdata as $prop)
{
$data[$prop] = $this->$prop;
}
return $data;
}
/**
* Set all current object data
* @param $data
* @return e_jsmanager
*/
public function setData($data)
{
if(!is_array($data)) return $this;
foreach ($data as $prop => $val)
{
if('_instance' == $prop || '_in_admin' == $prop) continue;
$this->$prop = $val;
}
return $this;
}
}