- Timestamp:
- 10/02/08 18:12:10 (3 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/php/misc/Hermit/src/Hermit/parameter/HermitProcedureParameter.php
r20417 r20492 30 30 public function bind(PDOStatement $stmt, $value){ 31 31 $param = $value[0]; 32 $propertyNames = $param->getPropertyNames(); 33 32 34 foreach($this->bindKeys as $index => $key){ 33 35 $bindKey = ':' . $key; 34 36 if($this->info->typeofIn($key)){ 37 if(!in_array($key, $propertyNames)){ 38 throw new InvalidArgumentException('param ' . $param . ' has not propery: ' . $key . ' instatement: ' . $stmt->queryString); 39 } 35 40 $stmt->bindParam($bindKey, $param->$key); 36 41 continue; 37 42 } 38 $paramValue = $param->$key; 43 44 $paramValue = null; 45 if(isset($param->$key)){ 46 $paramValue = $param->$key; 47 } 39 48 if(null === $paramValue){ 40 $stmt->bindParam($bindKey, null, PDO::PARAM_NULL | PDO::PARAM_INPUT_OUTPUT);49 $stmt->bindParam($bindKey, $paramValue, PDO::PARAM_NULL | PDO::PARAM_INPUT_OUTPUT); 41 50 continue; 42 51 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)