public function F_merge($block, $other) { $new = F_Hash::SF_new(NULL); foreach ($this->__PAIRS as $pair) { $new->__operator_arrayset(NULL, $pair->__ARRAY[0], $pair->__ARRAY[1]); } foreach ($other->__PAIRS as $pair) { $new->__operator_arrayset(NULL, $pair->__ARRAY[0], $pair->__ARRAY[1]); } return $new; }
public function F_error_info($block) { $info = $this->__PDO->errorInfo(); $hash = F_Hash::SF_new(NULL); $hash->__operator_arrayset(NULL, F_Symbol::__from_string('state'), F_String::__from_string($info[0])); if ($info[1] !== NULL) { $hash->__operator_arrayset(NULL, F_Symbol::__from_string('code'), F_String::__from_string($info[1])); } if ($info[2] !== NULL) { $hash->__operator_arrayset(NULL, F_Symbol::__from_string('msg'), F_String::__from_string($info[2])); } return $hash; }