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:
Paul Baranowski 2011-04-14 18:55:04 -04:00
parent 514777e8d2
commit b11cbd8159
4546 changed files with 138 additions and 51 deletions

View file

@ -0,0 +1,103 @@
<?php
/**
* This file is part of the Propel package.
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @license MIT License
*/
/**
* PropelConfigurationIterator is used internally by PropelConfiguration to
* build a flat array from nesting configuration arrays.
*
* @author Veikko Mäkinen <veikko@veikko.fi>
* @version $Revision: 1612 $
* @package propel.runtime.config
*/
class PropelConfigurationIterator extends RecursiveIteratorIterator
{
/**
* Node is a parent node
*/
const NODE_PARENT = 0;
/**
* Node is an actual configuration item
*/
const NODE_ITEM = 1;
/**
* Namespace stack when recursively iterating the configuration tree
*
* @var array
*/
protected $namespaceStack = array();
/**
* Current node type. Possible values: null (undefined), self::NODE_PARENT or self::NODE_ITEM
*
* @var int
*/
protected $nodeType = null;
/**
* Get current namespace
*
* @return string
*/
public function getNamespace()
{
return implode('.', $this->namespaceStack);
}
/**
* Get current node type.
*
* @see http://www.php.net/RecursiveIteratorIterator
* @return int
* - null (undefined)
* - self::NODE_PARENT
* - self::NODE_ITEM
*/
public function getNodeType()
{
return $this->nodeType;
}
/**
* Get the current element
*
* @see http://www.php.net/RecursiveIteratorIterator
* @return mixed
*/
public function current()
{
$current = parent::current();
if (is_array($current)) {
$this->namespaceStack[] = $this->key();
$this->nodeType = self::NODE_PARENT;
}
else {
$this->nodeType = self::NODE_ITEM;
}
return $current;
}
/**
* Called after current child iterator is invalid and right before it gets destructed.
*
* @see http://www.php.net/RecursiveIteratorIterator
*/
public function endChildren()
{
if ($this->namespaceStack) {
array_pop($this->namespaceStack);
}
}
}
?>