diff options
author | wei <> | 2006-12-16 03:56:03 +0000 |
---|---|---|
committer | wei <> | 2006-12-16 03:56:03 +0000 |
commit | ddc0de38f64e5834ce04f0407a8416172b596655 (patch) | |
tree | a94c75b6e7a4f443f748124b84e30d02826bb23a /framework/DataAccess/SQLMap/Configuration/TSimpleDynamicParser.php | |
parent | c8689010d28a0fe2a734131a2964d7df394cdf6c (diff) |
removed adodb and framework/DataAccess
Diffstat (limited to 'framework/DataAccess/SQLMap/Configuration/TSimpleDynamicParser.php')
-rw-r--r-- | framework/DataAccess/SQLMap/Configuration/TSimpleDynamicParser.php | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/framework/DataAccess/SQLMap/Configuration/TSimpleDynamicParser.php b/framework/DataAccess/SQLMap/Configuration/TSimpleDynamicParser.php deleted file mode 100644 index e58d8af8..00000000 --- a/framework/DataAccess/SQLMap/Configuration/TSimpleDynamicParser.php +++ /dev/null @@ -1,23 +0,0 @@ -<?php
-
-class TSimpleDynamicParser
-{
- private $PARAMETER_TOKEN_REGEXP = '/\$([^\$]+)\$/';
-
- const DYNAMIC_TOKEN = '`!`';
-
- public function parse($sqlMap, $statement, $sqlText, $scope)
- {
- $matches = array();
- $mappings = array();
- preg_match_all($this->PARAMETER_TOKEN_REGEXP, $sqlText, $matches);
- for($i = 0, $k=count($matches[1]); $i<$k; $i++)
- {
- $mappings[] = $matches[1][$i];
- $sqlText = str_replace($matches[0][$i], self::DYNAMIC_TOKEN, $sqlText);
- }
- return array('sql'=>$sqlText, 'parameters'=>$mappings);
- }
-}
-
-?>
\ No newline at end of file |