Changeset 17
- Timestamp:
- 11/28/06 05:23:24 (2 years ago)
- Files:
-
- trunk/lib/AkActiveRecord.php (modified) (1 diff)
- trunk/lib/AkDevelopmentErrorHandler.php (modified) (1 diff)
- trunk/script/test (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/AkActiveRecord.php
r15 r17 1920 1920 } 1921 1921 1922 /*1923 foreach ($this->_combinedAttributes as $attribute=>$rule){1924 $pattern = array_shift($rule);1925 if(method_exists(&$this, $pattern.'Decompose')){1926 $pieces = $this->{$pattern.'Decompose'}($this->$attribute);1927 if(is_array($pieces)){1928 foreach ($pieces as $k=>$v){1929 $this->setAttribute($k, $v);1930 }1931 }1932 }else{1933 $ary = sscanf($this->$attribute, $pattern);1934 for ($x=0;$x<count($ary);$x++){1935 $subattribute = $rule[$x];1936 if(!isset($subattribute_override_protection[$subattribute])){1937 $subattribute_override_protection[$subattribute] = $ary[$x];1938 $this->setAttribute($subattribute, $ary[$x], true, !$this->isCombinedAttribute($subattribute));1939 }1940 }1941 }1942 }1943 */1944 1922 1945 1923 trunk/lib/AkDevelopmentErrorHandler.php
r2 r17 32 32 33 33 34 /** 35 * @package AkelosFramework 36 * @subpackage Reporting 37 */ 34 38 class AkDevelopmentErrorHandler { 35 39 trunk/script/test
r2 r17 26 26 $tests_dir = realpath(dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'test'); 27 27 foreach ($argv as $test){ 28 $test = strstr($test,'.php') ? $test : $test.'.php'; 28 $test = strstr($test,'.php') ? trim($test, '/') : $test.'.php'; 29 $test = substr($test,0,5) == 'test/' ? substr($test,5) : $test; 29 30 $test = $tests_dir.DIRECTORY_SEPARATOR.$test; 30 31 if(!file_exists($test)){
