This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "quickfw".
The branch, master has been updated
via d5b36acee01ffaeb1dbdc7d956ad4c852e53d522 (commit)
from e0e506b8b45546f88287222d045c44b7d0b5d19e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit d5b36acee01ffaeb1dbdc7d956ad4c852e53d522
Author: Ivan Borzenkov <iva...@li...>
Date: Thu Jan 13 14:38:32 2011 +0300
Автолоад слотов и тегов
diff --git a/QFW/QuickFW/Autoload.php b/QFW/QuickFW/Autoload.php
index a0cf4d4..ea5200c 100644
--- a/QFW/QuickFW/Autoload.php
+++ b/QFW/QuickFW/Autoload.php
@@ -17,6 +17,7 @@ class Autoload
spl_autoload_register(array(__CLASS__, 'Bind'));
spl_autoload_register(array(__CLASS__, 'Dirs'));
spl_autoload_register(array(__CLASS__, 'Controller'));
+ spl_autoload_register(array(__CLASS__, 'SlotsAndTags'));
if (is_callable($function))
spl_autoload_register($function);
}
@@ -59,6 +60,8 @@ class Autoload
'ScaffoldController' => LIBPATH.'/Modules/Scaffold/ScaffoldController.php',
'QuickFW_Auth' => QFWPATH.'/QuickFW/Auth.php',
'Hlp' => QFWPATH.'/QuickFW/Helpers.php',
+ 'Dklab_Cache_Frontend_Slot' => QFWPATH.'/QuickFW/Cacher/Slot.php',
+ 'Dklab_Cache_Frontend_Tag' => QFWPATH.'/QuickFW/Cacher/Tag.php',
);
if (empty(self::$classes[$class]))
return false;
@@ -66,6 +69,26 @@ class Autoload
return true;
}
+ /**
+ * Автолоад слотов и тегов
+ *
+ * @param string $class искомый класс
+ */
+ static public function SlotsAndTags($class)
+ {
+ if (strpos($class, 'Slot_') === 0)
+ {
+ require APPPATH.'/_common/slots/'.substr($class, 5).'.php';
+ return true;
+ }
+ if (strpos($class, 'Tag_') === 0)
+ {
+ require APPPATH.'/_common/tags/'.substr($class, 4).'.php';
+ return true;
+ }
+ return false;
+ }
+
/** @var array соответствие классов и файлов */
static private $classes;
-----------------------------------------------------------------------
Summary of changes:
QFW/QuickFW/Autoload.php | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
hooks/post-receive
--
quickfw
|