Formatting output Plese Wait...
Detailed Description
Core Driver Class. all Driver Classes directly inherits it.
For internal use only.
you dont need to know much about this class if you are not extending Zigmoyd. e.g. If you are just using Zigmoyd you dont need to do much hassle with this class.
Definition at line 31 of file driver_core.php.
Member Function Documentation
OrmDriver::connAlias( string $conAliasName = null
)
Set the Connection Alias name against which to connect.
- Parameters:
-
| $conAliasName | Connection Alias name. |
- Returns:
- boolean
Definition at line 90 of file driver_core.php.
References perror().
Referenced by OrmDriver_mysql::connect().
Show Source00090 {
00091 if(is_null($conAliasName))return $this->connAlias;
00092 $path = ZIGROOT.DRS.Z_DIR_PROJECTS.DRS.Z_PROJECT_DIR.DRS.ZIGSETTINGSDIR.DRS.Z_DIR_ETC_CONF.DRS.$conAliasName.".con.ini.php";
00093
00094 if(!file_exists($path)){
00095 print("<code>zigmoyd.orm.driver.core.connection</code>No such Connection file exists on ".$path);
00096 return false;
00097 }
00098 if(!is_readable($path)){
00099 perror("<code>zigmoyd.orm.driver.core.connection</code>Connection file exists on ".$path." but not readable Plese check the permission");
00100 return false;
00101 }
00102 $this->connData = parse_ini_file($path);
00103 $this->connAlias = $conAliasName;
00104 return false;
00105 }
Top
OrmDriver::qType( int $qType )
OrmDriver::pasteLex( array $lex ) [protected]
Pass/update lexims structure.
- Parameters:
-
| $lex | associative array of lexims. |
Definition at line 118 of file driver_core.php.
References $lex.
Show Source00118 {
00119 $this->lex = $lex;
00120 }
Top
OrmDriver::isConnected( )
Checks wheather connected or not.
- Returns:
- boolean
Definition at line 125 of file driver_core.php.
Show Source00125 {
00126 return $this->connected;
00127 }
Top
Number of rows in result set.
- Returns:
- int
Definition at line 132 of file driver_core.php.
Show Source00132 {
00133 return $this->numRows;
00134 }
Top
OrmDriver::affectedRows( )
Number of rows affected due to update/insert/delete query.
- Returns:
- int
Definition at line 139 of file driver_core.php.
Show Source00139 {
00140 return $this->afectedRows;
00141 }
Top
OrmDriver::whereLexToStr( array $whereLex ) [private]
Converts Where Lexims to String Where Clause.
- Parameters:
-
- Returns:
- string
Definition at line 148 of file driver_core.php.
Referenced by OrmDriver_mysql::__generate().
Show Source00148 {
00149 $whereStr = '';
00150 $lineStr = array();
00151 foreach($whereLex as $whereObj){
00152 $value = ($whereObj->quote) ? "'$whereObj->value'" : $whereObj->value;
00153 $cnj = (count($lineStr) >= 1) ? $whereObj->cnj : "";
00154 $lineStr[] = trim("$cnj $whereObj->colName $whereObj->op $value");
00155 }
00156 return implode(" ", $lineStr);
00157 }
Top
send a reference to the called Object.
- Parameters:
-
| $caller | class="el" href="classzOrm__inc.php">zOrm_inc |
Definition at line 162 of file driver_core.php.
References $caller.
Show Source00162 {
00163 $this->caller = $caller;
00164 }
Top
Reimplemented in OrmDriver_mysql.
Definition at line 169 of file driver_core.php.
References perror().
Show Source00169 {
00170 perror("<code>zigmoyd.orm.driver.core.connect()</code>The Driver Class Must override the disConnect() Method");
00171 }
Top
Reimplemented in OrmDriver_mysql.
Definition at line 175 of file driver_core.php.
References perror().
Show Source00175 {
00176 perror("<code>zigmoyd.orm.driver.core.connect()</code>The Driver Class Must override the exportRaw() Method");
00177 }
Top
Field Documentation
OrmDriver::$conn [private]
OrmDriver::$connAlias = null [private]
OrmDriver::$connData [private]
OrmDriver::$res [private]
OrmDriver::$qType [private]
OrmDriver::$connected [protected]
OrmDriver::$lex [private]
OrmDriver::$caller [private]
The documentation for this class was generated from the following file: