cvs: pear /XML_Query2XML/XML/Query2XML Callback.php
| From: | Lukas Feiler | Date: | Sun, 30 Sep 2007 06:46:01 +0000 |
| Subject: | cvs: pear /XML_Query2XML/XML/Query2XML Callback.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-48723@lists.php.net to get a copy of this message | ||
lukasfeiler Sun Sep 30 06:46:01 2007 UTC
Modified files:
/pear/XML_Query2XML/XML/Query2XML Callback.php
Log:
new (for now private) command interfacese
http://cvs.php.net/viewvc.cgi/pear/XML_Query2XML/XML/Query2XML/Callback.php?r1=1.2&r2=1.3&diff_format=u
Index: pear/XML_Query2XML/XML/Query2XML/Callback.php
diff -u pear/XML_Query2XML/XML/Query2XML/Callback.php:1.2
pear/XML_Query2XML/XML/Query2XML/Callback.php:1.3
--- pear/XML_Query2XML/XML/Query2XML/Callback.php:1.2 Sat Feb 3 11:49:36 2007
+++ pear/XML_Query2XML/XML/Query2XML/Callback.php Sun Sep 30 06:46:00 2007
@@ -15,7 +15,7 @@
* @license http://www.gnu.org/copyleft/lesser.html LGPL
Version 2.1
* @author Lukas Feiler <lukas.feiler@lukasfeiler.com>
* @package XML_Query2XML
-* @version $Id: Callback.php,v 1.2 2007/02/03 11:49:36 lukasfeiler Exp $
+* @version $Id: Callback.php,v 1.3 2007/09/30 06:46:00 lukasfeiler Exp $
*/
@@ -95,4 +95,44 @@
*/
public function execute(array $record);
}
+
+/**This interface has to be implemented by all command classes that provide
+* a condition as to whether the returne value of execute() is to be used.
+*
+* @access private
+* @author Lukas Feiler <lukas.feiler@lukasfeiler.com>
+* @version Release: @package_version@
+* @copyright Empowered Media 2007
+* @package XML_Query2XML
+* @since Interface available since Release 1.5.0RC1
+*/
+interface XML_Query2XML_Command_Conditional extends XML_Query2XML_Callback
+{
+ /**Returns a boolean value indicating whether the return value of execute()
+ * is to be used.
+ * @param string $string The return value of execute()
+ * @return boolean
+ */
+ public function evaluateCondition($string);
+}
+
+/**This interface has to be implemented by all command classes that function
+* as a data source and wish to provide support for the asterisk shortcut.
+*
+* @access private
+* @author Lukas Feiler <lukas.feiler@lukasfeiler.com>
+* @version Release: @package_version@
+* @copyright Empowered Media 2007
+* @package XML_Query2XML
+* @since Interface available since Release 1.5.0RC1
+*/
+interface XML_Query2XML_Command_DataSource extends XML_Query2XML_Callback
+{
+ /**Replaces every occurence of an asterisk ('*') in the data source
+ * specification.
+ * @param string $columnName The name of the column that is to replace
+ * all occurences of '*'.
+ */
+ public function replaceAsterisks($columnName);
+}
?>
\ No newline at end of file