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 124e3d88ebc3f6d1ede8a4afcb65644291c1c3c7 (commit)
from 883348e1864aada2009f824c6a83ca37e9f64890 (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 124e3d88ebc3f6d1ede8a4afcb65644291c1c3c7
Author: Ivan1986 <iva...@li...>
Date: Fri Jun 4 10:41:08 2010 +0400
Удалена папка ClassTemplates за ненадобностью
diff --git a/ClassTemplates/Cacher.php b/ClassTemplates/Cacher.php
deleted file mode 100644
index 4b24730..0000000
--- a/ClassTemplates/Cacher.php
+++ /dev/null
@@ -1,72 +0,0 @@
-<?php
-
-class Cacher_Class implements Zend_Cache_Backend_Interface
-{
- /**
- * Set the frontend directives
- *
- * @param array $directives assoc of directives
- */
- public function setDirectives($directives);
-
- /**
- * Test if a cache is available for the given id and (if yes) return it (false else)
- *
- * Note : return value is always "string" (unserialization is done by the core not by the backend)
- *
- * @param string $id Cache id
- * @param boolean $doNotTestCacheValidity If set to true, the cache validity won't be tested
- * @return string|false cached datas
- */
- public function load($id, $doNotTest = false);
-
- /**
- * Test if a cache is available or not (for the given id)
- *
- * @param string $id cache id
- * @return mixed|false (a cache is not available) or "last modified" timestamp (int) of the available cache record
- */
- public function test($id);
-
- /**
- * Save some string datas into a cache record
- *
- * Note : $data is always "string" (serialization is done by the
- * core not by the backend)
- *
- * @param string $data Datas to cache
- * @param string $id Cache id
- * @param array $tags Array of strings, the cache record will be tagged by each string entry
- * @param int $specificLifetime If != false, set a specific lifetime for this cache record (null => infinite lifetime)
- * @return boolean true if no problem
- */
- public function save($data, $id, $tags = array(), $specificLifetime = false);
-
- /**
- * Remove a cache record
- *
- * @param string $id Cache id
- * @return boolean True if no problem
- */
- public function remove($id);
-
- /**
- * Clean some cache records
- *
- * Available modes are :
- * CACHE_CLR_ALL (default) => remove all cache entries ($tags is not used)
- * CACHE_CLR_OLD => remove too old cache entries ($tags is not used)
- * CACHE_CLR_TAG => remove cache entries matching all given tags
- * ($tags can be an array of strings or a single string)
- * CACHE_CLR_NOT_TAG => remove cache entries not {matching one of the given tags}
- * ($tags can be an array of strings or a single string)
- *
- * @param string $mode Clean mode
- * @param array $tags Array of tags
- * @return boolean true if no problem
- */
- public function clean($mode = CACHE_CLR_ALL, $tags = array());
-
-}
-
-?>
\ No newline at end of file
diff --git a/ClassTemplates/Readme.txt b/ClassTemplates/Readme.txt
deleted file mode 100644
index 0d83601..0000000
--- a/ClassTemplates/Readme.txt
+++ /dev/null
@@ -1,6 +0,0 @@
-В этой директории находятся шаблоны для написания классов шаблонизаторов, кешеров, прочей хрени :)
-Взять, дописать функциональность к интерфейсу и положить в
-шаблонизатор - QFW/Templater/ - класс должен лежать в файле QFW/Templater/<имя>.php и называться Templater_<имя>
-кешер - QFW/Cacher/ - класс должен лежать в файле QFW/Cacher/<имя>.php и называться Cacher_<имя>
-
-Если накасячите с интерфейсами - сами виноваты :)
\ No newline at end of file
diff --git a/ClassTemplates/Templater.php b/ClassTemplates/Templater.php
deleted file mode 100644
index e4876be..0000000
--- a/ClassTemplates/Templater.php
+++ /dev/null
@@ -1,128 +0,0 @@
-<?php
-
-class Templater_Templater
-{
- /** @var QuickFW_Plugs Плагины фреймворка */
- public $P;
-
- /** @var String Основной шаблон (путь относительно директории шаблонов) */
- public $mainTemplate;
-
-
- /**
- * Constructor
- *
- * @param string $tmplPath - директория шаблонов
- * @param string $mainTpl - основной шаблон
- * @return void
- */
- public function __construct($tmplPath, $mainTpl)
- {
- $this->mainTemplate = $mainTpl;
- $this->P = QuickFW_Plugs::getInstance();
- }
-
- /**
- * Set the path to the templates
- *
- * @param string $path The directory to set as the path.
- * @return void
- */
- public function setScriptPath($path)
- {
- }
-
- /**
- * Retrieve the current template directory
- *
- * @return string
- */
- public function getScriptPath()
- {
- }
-
- /**
- * Assign variables to the template
- *
- * Allows setting a specific key to the specified value, OR passing an array
- * of key => value pairs to set en masse.
- *
- * @see __set()
- * @param string|array $spec The assignment strategy to use (key or array of key
- * => value pairs)
- * @param mixed $value (Optional) If assigning a named variable, use this
- * as the value.
- * @return void
- */
- public function assign($spec, $value = null)
- {
- return $this;
- }
-
- /**
- * Clear assigned variable
- *
- * @param string|array
- * @return void
- */
- public function delete($key)
- {
- }
-
- /**
- * Clear all assigned variables
- *
- * @return void
- */
- public function clearVars()
- {
- }
-
- public function getTemplateVars($var = null)
- {
- }
-
- public function block($block)
- {
- //TODO: убрать ненужную переменную после перехода на php 5.3
- $args = func_get_args();
- return call_user_func_array(array(&QFW::$router, 'blockRoute'), $args);
- }
-
- /**
- * Processes a template and returns the output.
- *
- * @param string $name The template to process.
- * @return string The output.
- */
- public function render($name)
- {
- return $this->fetch($name);
- }
-
- public function fetch($name)
- {
- }
-
- /**
- * Выводит основной шаблон, обрабатывает функцией HeaderFilter
- *
- * @param string $name The template to process.
- * @return string The output.
- */
- public function displayMain($content)
- {
- if (isset($this->mainTemplate) && $this->mainTemplate!="")
- {
- //Необходимо для установки флага CSS
- $this->P->startDisplayMain();
- $this->assign('content',$content);
- $content = $this->fetch($this->mainTemplate);
- }
- //Необходимо для вызовов всех деструкторов
- QFW::$router->startDisplayMain();
- return $this->P->HeaderFilter($content);
- }
-
-}
-?>
\ No newline at end of file
-----------------------------------------------------------------------
Summary of changes:
ClassTemplates/Cacher.php | 72 -----------------------
ClassTemplates/Readme.txt | 6 --
ClassTemplates/Templater.php | 128 ------------------------------------------
3 files changed, 0 insertions(+), 206 deletions(-)
delete mode 100644 ClassTemplates/Cacher.php
delete mode 100644 ClassTemplates/Readme.txt
delete mode 100644 ClassTemplates/Templater.php
hooks/post-receive
--
quickfw
|