CC-2166: Packaging Improvements. Moved the Zend app into airtime_mvc. It is now installed to /var/www/airtime. Storage is now set to /srv/airtime/stor. Utils are now installed to /usr/lib/airtime/utils/. Added install/airtime-dircheck.php as a simple test to see if everything is install/uninstalled correctly.
This commit is contained in:
parent
514777e8d2
commit
b11cbd8159
4546 changed files with 138 additions and 51 deletions
94
airtime_mvc/library/Zend/Db/Statement/Pdo/Ibm.php
Normal file
94
airtime_mvc/library/Zend/Db/Statement/Pdo/Ibm.php
Normal file
|
@ -0,0 +1,94 @@
|
|||
<?php
|
||||
/**
|
||||
* Zend Framework
|
||||
*
|
||||
* LICENSE
|
||||
*
|
||||
* This source file is subject to the new BSD license that is bundled
|
||||
* with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://framework.zend.com/license/new-bsd
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@zend.com so we can send you a copy immediately.
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Db
|
||||
* @subpackage Statement
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Ibm.php 20096 2010-01-06 02:05:09Z bkarwin $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Db_Statement_Pdo
|
||||
*/
|
||||
require_once 'Zend/Db/Statement/Pdo.php';
|
||||
|
||||
/**
|
||||
* Proxy class to wrap a PDOStatement object for IBM Databases.
|
||||
* Matches the interface of PDOStatement. All methods simply proxy to the
|
||||
* matching method in PDOStatement. PDOExceptions thrown by PDOStatement
|
||||
* are re-thrown as Zend_Db_Statement_Exception.
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Db
|
||||
* @subpackage Statement
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Db_Statement_Pdo_Ibm extends Zend_Db_Statement_Pdo
|
||||
{
|
||||
/**
|
||||
* Returns an array containing all of the result set rows.
|
||||
*
|
||||
* Behaves like parent, but if limit()
|
||||
* is used, the final result removes the extra column
|
||||
* 'zend_db_rownum'
|
||||
*
|
||||
* @param int $style OPTIONAL Fetch mode.
|
||||
* @param int $col OPTIONAL Column number, if fetch mode is by column.
|
||||
* @return array Collection of rows, each in a format by the fetch mode.
|
||||
* @throws Zend_Db_Statement_Exception
|
||||
*/
|
||||
public function fetchAll($style = null, $col = null)
|
||||
{
|
||||
$data = parent::fetchAll($style, $col);
|
||||
$results = array();
|
||||
$remove = $this->_adapter->foldCase('ZEND_DB_ROWNUM');
|
||||
|
||||
foreach ($data as $row) {
|
||||
if (is_array($row) && array_key_exists($remove, $row)) {
|
||||
unset($row[$remove]);
|
||||
}
|
||||
$results[] = $row;
|
||||
}
|
||||
return $results;
|
||||
}
|
||||
|
||||
/**
|
||||
* Binds a parameter to the specified variable name.
|
||||
*
|
||||
* @param mixed $parameter Name the parameter, either integer or string.
|
||||
* @param mixed $variable Reference to PHP variable containing the value.
|
||||
* @param mixed $type OPTIONAL Datatype of SQL parameter.
|
||||
* @param mixed $length OPTIONAL Length of SQL parameter.
|
||||
* @param mixed $options OPTIONAL Other options.
|
||||
* @return bool
|
||||
* @throws Zend_Db_Statement_Exception
|
||||
*/
|
||||
public function _bindParam($parameter, &$variable, $type = null, $length = null, $options = null)
|
||||
{
|
||||
try {
|
||||
if (($type === null) && ($length === null) && ($options === null)) {
|
||||
return $this->_stmt->bindParam($parameter, $variable);
|
||||
} else {
|
||||
return $this->_stmt->bindParam($parameter, $variable, $type, $length, $options);
|
||||
}
|
||||
} catch (PDOException $e) {
|
||||
require_once 'Zend/Db/Statement/Exception.php';
|
||||
throw new Zend_Db_Statement_Exception($e->getMessage(), $e->getCode(), $e);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
91
airtime_mvc/library/Zend/Db/Statement/Pdo/Oci.php
Normal file
91
airtime_mvc/library/Zend/Db/Statement/Pdo/Oci.php
Normal file
|
@ -0,0 +1,91 @@
|
|||
<?php
|
||||
/**
|
||||
* Zend Framework
|
||||
*
|
||||
* LICENSE
|
||||
*
|
||||
* This source file is subject to the new BSD license that is bundled
|
||||
* with this package in the file LICENSE.txt.
|
||||
* It is also available through the world-wide-web at this URL:
|
||||
* http://framework.zend.com/license/new-bsd
|
||||
* If you did not receive a copy of the license and are unable to
|
||||
* obtain it through the world-wide-web, please send an email
|
||||
* to license@zend.com so we can send you a copy immediately.
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Db
|
||||
* @subpackage Statement
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: Oci.php 21105 2010-02-19 21:27:09Z mikaelkael $
|
||||
*/
|
||||
|
||||
/**
|
||||
* @see Zend_Db_Statement_Pdo
|
||||
*/
|
||||
require_once 'Zend/Db/Statement/Pdo.php';
|
||||
|
||||
/**
|
||||
* Proxy class to wrap a PDOStatement object for IBM Databases.
|
||||
* Matches the interface of PDOStatement. All methods simply proxy to the
|
||||
* matching method in PDOStatement. PDOExceptions thrown by PDOStatement
|
||||
* are re-thrown as Zend_Db_Statement_Exception.
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Db
|
||||
* @subpackage Statement
|
||||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Db_Statement_Pdo_Oci extends Zend_Db_Statement_Pdo
|
||||
{
|
||||
|
||||
/**
|
||||
* Returns an array containing all of the result set rows.
|
||||
*
|
||||
* Behaves like parent, but if limit()
|
||||
* is used, the final result removes the extra column
|
||||
* 'zend_db_rownum'
|
||||
*
|
||||
* @param int $style OPTIONAL Fetch mode.
|
||||
* @param int $col OPTIONAL Column number, if fetch mode is by column.
|
||||
* @return array Collection of rows, each in a format by the fetch mode.
|
||||
* @throws Zend_Db_Statement_Exception
|
||||
*/
|
||||
public function fetchAll($style = null, $col = null)
|
||||
{
|
||||
$data = parent::fetchAll($style, $col);
|
||||
$results = array();
|
||||
$remove = $this->_adapter->foldCase('zend_db_rownum');
|
||||
|
||||
foreach ($data as $row) {
|
||||
if (is_array($row) && array_key_exists($remove, $row)) {
|
||||
unset($row[$remove]);
|
||||
}
|
||||
$results[] = $row;
|
||||
}
|
||||
return $results;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Fetches a row from the result set.
|
||||
*
|
||||
* @param int $style OPTIONAL Fetch mode for this fetch operation.
|
||||
* @param int $cursor OPTIONAL Absolute, relative, or other.
|
||||
* @param int $offset OPTIONAL Number for absolute or relative cursors.
|
||||
* @return mixed Array, object, or scalar depending on fetch mode.
|
||||
* @throws Zend_Db_Statement_Exception
|
||||
*/
|
||||
public function fetch($style = null, $cursor = null, $offset = null)
|
||||
{
|
||||
$row = parent::fetch($style, $cursor, $offset);
|
||||
|
||||
$remove = $this->_adapter->foldCase('zend_db_rownum');
|
||||
if (is_array($row) && array_key_exists($remove, $row)) {
|
||||
unset($row[$remove]);
|
||||
}
|
||||
|
||||
return $row;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue