import v2.0.0.0_RC3 | 2012-07-01
https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: ActionMethod.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: ActionMethod.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -35,25 +35,25 @@ require_once 'Zend/Reflection/File.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_ActionMethod implements Zend_Tool_Project_Context_Interface
|
||||
class Zend_Tool_Project_Context_Zf_ActionMethod implements Zend_Tool_Project_Context_Interface
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var Zend_Tool_Project_Profile_Resource
|
||||
*/
|
||||
protected $_resource = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var Zend_Tool_Project_Profile_Resource
|
||||
*/
|
||||
protected $_controllerResource = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
@ -63,7 +63,7 @@ class Zend_Tool_Project_Context_Zf_ActionMethod implements Zend_Tool_Project_Con
|
||||
* @var string
|
||||
*/
|
||||
protected $_actionName = null;
|
||||
|
||||
|
||||
/**
|
||||
* init()
|
||||
*
|
||||
@ -72,7 +72,7 @@ class Zend_Tool_Project_Context_Zf_ActionMethod implements Zend_Tool_Project_Con
|
||||
public function init()
|
||||
{
|
||||
$this->_actionName = $this->_resource->getAttribute('actionName');
|
||||
|
||||
|
||||
$this->_resource->setAppendable(false);
|
||||
$this->_controllerResource = $this->_resource->getParentResource();
|
||||
if (!$this->_controllerResource->getContext() instanceof Zend_Tool_Project_Context_Zf_ControllerFile) {
|
||||
@ -81,9 +81,9 @@ class Zend_Tool_Project_Context_Zf_ActionMethod implements Zend_Tool_Project_Con
|
||||
}
|
||||
// make the ControllerFile node appendable so we can tack on the actionMethod.
|
||||
$this->_resource->getParentResource()->setAppendable(true);
|
||||
|
||||
|
||||
$this->_controllerPath = $this->_controllerResource->getContext()->getPath();
|
||||
|
||||
|
||||
/*
|
||||
* This code block is now commented, its doing to much for init()
|
||||
*
|
||||
@ -92,10 +92,10 @@ class Zend_Tool_Project_Context_Zf_ActionMethod implements Zend_Tool_Project_Con
|
||||
throw new Zend_Tool_Project_Context_Exception('An action named ' . $this->_actionName . 'Action already exists in this controller');
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getPersistentAttributes
|
||||
*
|
||||
@ -107,7 +107,7 @@ class Zend_Tool_Project_Context_Zf_ActionMethod implements Zend_Tool_Project_Con
|
||||
'actionName' => $this->getActionName()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -117,7 +117,7 @@ class Zend_Tool_Project_Context_Zf_ActionMethod implements Zend_Tool_Project_Con
|
||||
{
|
||||
return 'ActionMethod';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* setResource()
|
||||
*
|
||||
@ -129,7 +129,7 @@ class Zend_Tool_Project_Context_Zf_ActionMethod implements Zend_Tool_Project_Con
|
||||
$this->_resource = $resource;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* setActionName()
|
||||
*
|
||||
@ -141,7 +141,7 @@ class Zend_Tool_Project_Context_Zf_ActionMethod implements Zend_Tool_Project_Con
|
||||
$this->_actionName = $actionName;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getActionName()
|
||||
*
|
||||
@ -151,7 +151,7 @@ class Zend_Tool_Project_Context_Zf_ActionMethod implements Zend_Tool_Project_Con
|
||||
{
|
||||
return $this->_actionName;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* create()
|
||||
*
|
||||
@ -162,13 +162,13 @@ class Zend_Tool_Project_Context_Zf_ActionMethod implements Zend_Tool_Project_Con
|
||||
if (self::createActionMethod($this->_controllerPath, $this->_actionName) === false) {
|
||||
require_once 'Zend/Tool/Project/Context/Exception.php';
|
||||
throw new Zend_Tool_Project_Context_Exception(
|
||||
'Could not create action within controller ' . $this->_controllerPath
|
||||
'Could not create action within controller ' . $this->_controllerPath
|
||||
. ' with action name ' . $this->_actionName
|
||||
);
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* delete()
|
||||
*
|
||||
@ -179,7 +179,7 @@ class Zend_Tool_Project_Context_Zf_ActionMethod implements Zend_Tool_Project_Con
|
||||
// @todo do this
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* createAcionMethod()
|
||||
*
|
||||
@ -193,17 +193,17 @@ class Zend_Tool_Project_Context_Zf_ActionMethod implements Zend_Tool_Project_Con
|
||||
if (!file_exists($controllerPath)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
$controllerCodeGenFile = Zend_CodeGenerator_Php_File::fromReflectedFileName($controllerPath, true, true);
|
||||
$controllerCodeGenFile->getClass()->setMethod(array(
|
||||
'name' => $actionName . 'Action',
|
||||
'body' => $body
|
||||
));
|
||||
|
||||
|
||||
file_put_contents($controllerPath, $controllerCodeGenFile->generate());
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* hasActionMethod()
|
||||
*
|
||||
@ -216,9 +216,9 @@ class Zend_Tool_Project_Context_Zf_ActionMethod implements Zend_Tool_Project_Con
|
||||
if (!file_exists($controllerPath)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
$controllerCodeGenFile = Zend_CodeGenerator_Php_File::fromReflectedFileName($controllerPath, true, true);
|
||||
return $controllerCodeGenFile->getClass()->hasMethod($actionName . 'Action');
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: ApisDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: ApisDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,20 +30,20 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_ApisDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
class Zend_Tool_Project_Context_Zf_ApisDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'apis';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,5 +53,5 @@ class Zend_Tool_Project_Context_Zf_ApisDirectory extends Zend_Tool_Project_Conte
|
||||
{
|
||||
return 'ApisDirectory';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: ApplicationConfigFile.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: ApplicationConfigFile.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,7 +30,7 @@ require_once 'Zend/Tool/Project/Context/Filesystem/File.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
@ -38,12 +38,12 @@ require_once 'Zend/Tool/Project/Context/Filesystem/File.php';
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_ApplicationConfigFile extends Zend_Tool_Project_Context_Filesystem_File
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'application.ini';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,7 +53,7 @@ class Zend_Tool_Project_Context_Zf_ApplicationConfigFile extends Zend_Tool_Proje
|
||||
{
|
||||
return 'ApplicationConfigFile';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* init()
|
||||
*
|
||||
@ -65,7 +65,7 @@ class Zend_Tool_Project_Context_Zf_ApplicationConfigFile extends Zend_Tool_Proje
|
||||
parent::init();
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getPersistentAttributes()
|
||||
*
|
||||
@ -75,7 +75,7 @@ class Zend_Tool_Project_Context_Zf_ApplicationConfigFile extends Zend_Tool_Proje
|
||||
{
|
||||
return array('type' => $this->_type);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getContents()
|
||||
*
|
||||
@ -104,5 +104,5 @@ phpSettings.display_errors = 1
|
||||
EOS;
|
||||
return $contents;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: ApplicationDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: ApplicationDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,20 +30,20 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_ApplicationDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
class Zend_Tool_Project_Context_Zf_ApplicationDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
{
|
||||
|
||||
|
||||
protected $_filesystemName = 'application';
|
||||
|
||||
|
||||
public function getName()
|
||||
{
|
||||
return 'ApplicationDirectory';
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: BootstrapFile.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: BootstrapFile.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -32,23 +32,23 @@ require_once 'Zend/Application.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_BootstrapFile extends Zend_Tool_Project_Context_Filesystem_File
|
||||
class Zend_Tool_Project_Context_Zf_BootstrapFile extends Zend_Tool_Project_Context_Filesystem_File
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'Bootstrap.php';
|
||||
|
||||
|
||||
protected $_applicationInstance = null;
|
||||
protected $_bootstrapInstance = null;
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -58,30 +58,30 @@ class Zend_Tool_Project_Context_Zf_BootstrapFile extends Zend_Tool_Project_Conte
|
||||
{
|
||||
return 'BootstrapFile';
|
||||
}
|
||||
|
||||
|
||||
public function init()
|
||||
{
|
||||
parent::init();
|
||||
|
||||
|
||||
$applicationConfigFile = $this->_resource->getProfile()->search('ApplicationConfigFile');
|
||||
$applicationDirectory = $this->_resource->getProfile()->search('ApplicationDirectory');
|
||||
|
||||
|
||||
if (($applicationConfigFile === false) || ($applicationDirectory === false)) {
|
||||
throw new Exception('To use the BootstrapFile context, your project requires the use of both the "ApplicationConfigFile" and "ApplicationDirectory" contexts.');
|
||||
}
|
||||
|
||||
|
||||
if ($applicationConfigFile->getContext()->exists()) {
|
||||
define('APPLICATION_PATH', $applicationDirectory->getPath());
|
||||
$applicationOptions = array();
|
||||
$applicationOptions['config'] = $applicationConfigFile->getPath();
|
||||
|
||||
|
||||
$this->_applicationInstance = new Zend_Application(
|
||||
'development',
|
||||
$applicationOptions
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getContents()
|
||||
*
|
||||
@ -97,7 +97,7 @@ class Zend_Tool_Project_Context_Zf_BootstrapFile extends Zend_Tool_Project_Conte
|
||||
)),
|
||||
)
|
||||
));
|
||||
|
||||
|
||||
return $codeGenFile->generate();
|
||||
}
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: CacheDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: CacheDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,20 +30,20 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_CacheDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
class Zend_Tool_Project_Context_Zf_CacheDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'cache';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,5 +53,5 @@ class Zend_Tool_Project_Context_Zf_CacheDirectory extends Zend_Tool_Project_Cont
|
||||
{
|
||||
return 'CacheDirectory';
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: ConfigFile.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: ConfigFile.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,20 +30,20 @@ require_once 'Zend/Tool/Project/Context/Filesystem/File.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_ConfigFile extends Zend_Tool_Project_Context_Filesystem_File
|
||||
class Zend_Tool_Project_Context_Zf_ConfigFile extends Zend_Tool_Project_Context_Filesystem_File
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'bootstrap.php';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,7 +53,7 @@ class Zend_Tool_Project_Context_Zf_ConfigFile extends Zend_Tool_Project_Context_
|
||||
{
|
||||
return 'ConfigFile';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getContents()
|
||||
*
|
||||
@ -63,5 +63,5 @@ class Zend_Tool_Project_Context_Zf_ConfigFile extends Zend_Tool_Project_Context_
|
||||
{
|
||||
return '';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: ConfigsDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: ConfigsDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,20 +30,20 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_ConfigsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
class Zend_Tool_Project_Context_Zf_ConfigsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'configs';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,5 +53,5 @@ class Zend_Tool_Project_Context_Zf_ConfigsDirectory extends Zend_Tool_Project_Co
|
||||
{
|
||||
return 'ConfigsDirectory';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: ControllerFile.php 16972 2009-07-22 18:44:24Z ralph $
|
||||
* @version $Id: ControllerFile.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -40,25 +40,25 @@ require_once 'Zend/Filter/Word/DashToCamelCase.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_ControllerFile extends Zend_Tool_Project_Context_Filesystem_File
|
||||
class Zend_Tool_Project_Context_Zf_ControllerFile extends Zend_Tool_Project_Context_Filesystem_File
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_controllerName = 'index';
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'controllerName';
|
||||
|
||||
|
||||
/**
|
||||
* init()
|
||||
*
|
||||
@ -71,7 +71,7 @@ class Zend_Tool_Project_Context_Zf_ControllerFile extends Zend_Tool_Project_Cont
|
||||
parent::init();
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getPersistentAttributes
|
||||
*
|
||||
@ -83,7 +83,7 @@ class Zend_Tool_Project_Context_Zf_ControllerFile extends Zend_Tool_Project_Cont
|
||||
'controllerName' => $this->getControllerName()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -93,7 +93,7 @@ class Zend_Tool_Project_Context_Zf_ControllerFile extends Zend_Tool_Project_Cont
|
||||
{
|
||||
return 'ControllerFile';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getControllerName()
|
||||
*
|
||||
@ -103,7 +103,7 @@ class Zend_Tool_Project_Context_Zf_ControllerFile extends Zend_Tool_Project_Cont
|
||||
{
|
||||
return $this->_controllerName;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getContents()
|
||||
*
|
||||
@ -113,9 +113,9 @@ class Zend_Tool_Project_Context_Zf_ControllerFile extends Zend_Tool_Project_Cont
|
||||
{
|
||||
|
||||
$filter = new Zend_Filter_Word_DashToCamelCase();
|
||||
|
||||
|
||||
$className = $filter->filter($this->_controllerName) . 'Controller';
|
||||
|
||||
|
||||
$codeGenFile = new Zend_CodeGenerator_Php_File(array(
|
||||
'fileName' => $this->getPath(),
|
||||
'classes' => array(
|
||||
@ -131,10 +131,10 @@ class Zend_Tool_Project_Context_Zf_ControllerFile extends Zend_Tool_Project_Cont
|
||||
))
|
||||
)
|
||||
));
|
||||
|
||||
|
||||
|
||||
if ($className == 'ErrorController') {
|
||||
|
||||
|
||||
$codeGenFile = new Zend_CodeGenerator_Php_File(array(
|
||||
'fileName' => $this->getPath(),
|
||||
'classes' => array(
|
||||
@ -147,7 +147,7 @@ class Zend_Tool_Project_Context_Zf_ControllerFile extends Zend_Tool_Project_Cont
|
||||
'body' => <<<EOS
|
||||
\$errors = \$this->_getParam('error_handler');
|
||||
|
||||
switch (\$errors->type) {
|
||||
switch (\$errors->type) {
|
||||
case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_CONTROLLER:
|
||||
case Zend_Controller_Plugin_ErrorHandler::EXCEPTION_NO_ACTION:
|
||||
|
||||
@ -156,7 +156,7 @@ switch (\$errors->type) {
|
||||
\$this->view->message = 'Page not found';
|
||||
break;
|
||||
default:
|
||||
// application error
|
||||
// application error
|
||||
\$this->getResponse()->setHttpResponseCode(500);
|
||||
\$this->view->message = 'Application error';
|
||||
break;
|
||||
@ -172,12 +172,12 @@ EOS
|
||||
));
|
||||
|
||||
}
|
||||
|
||||
|
||||
// store the generator into the registry so that the addAction command can use the same object later
|
||||
Zend_CodeGenerator_Php_File::registerFileCodeGenerator($codeGenFile); // REQUIRES filename to be set
|
||||
return $codeGenFile->generate();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* addAction()
|
||||
*
|
||||
@ -189,7 +189,7 @@ EOS
|
||||
$class->setMethod(array('name' => $actionName . 'Action', 'body' => ' // action body here'));
|
||||
file_put_contents($this->getPath(), $codeGenFile->generate());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getCodeGenerator()
|
||||
*
|
||||
@ -202,5 +202,5 @@ EOS
|
||||
$class = array_shift($codeGenFileClasses);
|
||||
return $class;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: ControllersDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: ControllersDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,7 +30,7 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
@ -38,12 +38,12 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_ControllersDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'controllers';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,5 +53,5 @@ class Zend_Tool_Project_Context_Zf_ControllersDirectory extends Zend_Tool_Projec
|
||||
{
|
||||
return 'ControllersDirectory';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: DataDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: DataDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,20 +30,20 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_DataDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
class Zend_Tool_Project_Context_Zf_DataDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'data';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,5 +53,5 @@ class Zend_Tool_Project_Context_Zf_DataDirectory extends Zend_Tool_Project_Conte
|
||||
{
|
||||
return 'DataDirectory';
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: DbTableDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: DbTableDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,7 +30,7 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
@ -43,7 +43,7 @@ class Zend_Tool_Project_Context_Zf_DbTableDirectory extends Zend_Tool_Project_Co
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'DbTable';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: DbTableFile.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: DbTableFile.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,7 +30,7 @@ require_once 'Zend/Tool/Project/Context/Filesystem/File.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
@ -38,7 +38,7 @@ require_once 'Zend/Tool/Project/Context/Filesystem/File.php';
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_DbTableFile extends Zend_Tool_Project_Context_Filesystem_File
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -48,7 +48,7 @@ class Zend_Tool_Project_Context_Zf_DbTableFile extends Zend_Tool_Project_Context
|
||||
{
|
||||
return 'DbTableFile';
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
protected $_dbTableName;
|
||||
|
||||
@ -68,5 +68,5 @@ class Zend_Tool_Project_Context_Zf_DbTableFile extends Zend_Tool_Project_Context
|
||||
return $this->_dbTableName;
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: FormFile.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: FormFile.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,7 +30,7 @@ require_once 'Zend/Tool/Project/Context/Filesystem/File.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
@ -38,7 +38,7 @@ require_once 'Zend/Tool/Project/Context/Filesystem/File.php';
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_FormFile extends Zend_Tool_Project_Context_Filesystem_File
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -48,5 +48,5 @@ class Zend_Tool_Project_Context_Zf_FormFile extends Zend_Tool_Project_Context_Fi
|
||||
{
|
||||
return 'FormFile';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: FormsDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: FormsDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,7 +30,7 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
@ -43,7 +43,7 @@ class Zend_Tool_Project_Context_Zf_FormsDirectory extends Zend_Tool_Project_Cont
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'forms';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: HtaccessFile.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: HtaccessFile.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,20 +30,20 @@ require_once 'Zend/Tool/Project/Context/Filesystem/File.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_HtaccessFile extends Zend_Tool_Project_Context_Filesystem_File
|
||||
class Zend_Tool_Project_Context_Zf_HtaccessFile extends Zend_Tool_Project_Context_Filesystem_File
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = '.htaccess';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,7 +53,7 @@ class Zend_Tool_Project_Context_Zf_HtaccessFile extends Zend_Tool_Project_Contex
|
||||
{
|
||||
return 'HtaccessFile';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getContents()
|
||||
*
|
||||
@ -74,5 +74,5 @@ RewriteRule ^.*$ index.php [NC,L]
|
||||
EOS;
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: LayoutsDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: LayoutsDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,20 +30,20 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_LayoutsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
class Zend_Tool_Project_Context_Zf_LayoutsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'layouts';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,5 +53,5 @@ class Zend_Tool_Project_Context_Zf_LayoutsDirectory extends Zend_Tool_Project_Co
|
||||
{
|
||||
return 'LayoutsDirectory';
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: LibraryDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: LibraryDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,28 +30,28 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_LibraryDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
class Zend_Tool_Project_Context_Zf_LibraryDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'library';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return 'LibraryDirectory';
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: LocalesDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: LocalesDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,20 +30,20 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_LocalesDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
class Zend_Tool_Project_Context_Zf_LocalesDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'locales';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,5 +53,5 @@ class Zend_Tool_Project_Context_Zf_LocalesDirectory extends Zend_Tool_Project_Co
|
||||
{
|
||||
return 'LocalesDirectory';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: LogsDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: LogsDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,20 +30,20 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_LogsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
class Zend_Tool_Project_Context_Zf_LogsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'logs';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,5 +53,5 @@ class Zend_Tool_Project_Context_Zf_LogsDirectory extends Zend_Tool_Project_Conte
|
||||
{
|
||||
return 'LogsDirectory';
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: ModelFile.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: ModelFile.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,7 +30,7 @@ require_once 'Zend/Tool/Project/Context/Filesystem/File.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
@ -38,7 +38,7 @@ require_once 'Zend/Tool/Project/Context/Filesystem/File.php';
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_ModelFile extends Zend_Tool_Project_Context_Filesystem_File
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -48,5 +48,5 @@ class Zend_Tool_Project_Context_Zf_ModelFile extends Zend_Tool_Project_Context_F
|
||||
{
|
||||
return 'ModelFile';
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: ModelsDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: ModelsDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,20 +30,20 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_ModelsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
class Zend_Tool_Project_Context_Zf_ModelsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'models';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,5 +53,5 @@ class Zend_Tool_Project_Context_Zf_ModelsDirectory extends Zend_Tool_Project_Con
|
||||
{
|
||||
return 'ModelsDirectory';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: ModuleDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: ModuleDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,25 +30,25 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_ModuleDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
class Zend_Tool_Project_Context_Zf_ModuleDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_moduleName = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'moduleDirectory';
|
||||
|
||||
|
||||
/**
|
||||
* init()
|
||||
*
|
||||
@ -60,7 +60,7 @@ class Zend_Tool_Project_Context_Zf_ModuleDirectory extends Zend_Tool_Project_Con
|
||||
parent::init();
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -70,7 +70,7 @@ class Zend_Tool_Project_Context_Zf_ModuleDirectory extends Zend_Tool_Project_Con
|
||||
{
|
||||
return 'ModuleDirectory';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getPersistentAttributes
|
||||
*
|
||||
@ -82,7 +82,7 @@ class Zend_Tool_Project_Context_Zf_ModuleDirectory extends Zend_Tool_Project_Con
|
||||
'moduleName' => $this->getModuleName()
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getModuleName()
|
||||
*
|
||||
@ -92,6 +92,6 @@ class Zend_Tool_Project_Context_Zf_ModuleDirectory extends Zend_Tool_Project_Con
|
||||
{
|
||||
return $this->_moduleName;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: ModulesDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: ModulesDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,20 +30,20 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_ModulesDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
class Zend_Tool_Project_Context_Zf_ModulesDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'modules';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,5 +53,5 @@ class Zend_Tool_Project_Context_Zf_ModulesDirectory extends Zend_Tool_Project_Co
|
||||
{
|
||||
return 'ModulesDirectory';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: ProjectProviderFile.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: ProjectProviderFile.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -35,25 +35,25 @@ require_once 'Zend/CodeGenerator/Php/File.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_ProjectProviderFile extends Zend_Tool_Project_Context_Filesystem_File
|
||||
class Zend_Tool_Project_Context_Zf_ProjectProviderFile extends Zend_Tool_Project_Context_Filesystem_File
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_projectProviderName = null;
|
||||
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $_actionNames = array();
|
||||
|
||||
|
||||
/**
|
||||
* init()
|
||||
*
|
||||
@ -61,11 +61,11 @@ class Zend_Tool_Project_Context_Zf_ProjectProviderFile extends Zend_Tool_Project
|
||||
*/
|
||||
public function init()
|
||||
{
|
||||
|
||||
|
||||
$this->_projectProviderName = $this->_resource->getAttribute('projectProviderName');
|
||||
$this->_actionNames = $this->_resource->getAttribute('actionNames');
|
||||
$this->_filesystemName = ucfirst($this->_projectProviderName) . 'Provider.php';
|
||||
|
||||
|
||||
if (strpos($this->_actionNames, ',')) {
|
||||
$this->_actionNames = explode(',', $this->_actionNames);
|
||||
} else {
|
||||
@ -75,7 +75,7 @@ class Zend_Tool_Project_Context_Zf_ProjectProviderFile extends Zend_Tool_Project
|
||||
parent::init();
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getPersistentAttributes()
|
||||
*
|
||||
@ -88,7 +88,7 @@ class Zend_Tool_Project_Context_Zf_ProjectProviderFile extends Zend_Tool_Project
|
||||
'actionNames' => implode(',', $this->_actionNames)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -98,7 +98,7 @@ class Zend_Tool_Project_Context_Zf_ProjectProviderFile extends Zend_Tool_Project
|
||||
{
|
||||
return 'ProjectProviderFile';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getProjectProviderName()
|
||||
*
|
||||
@ -118,14 +118,14 @@ class Zend_Tool_Project_Context_Zf_ProjectProviderFile extends Zend_Tool_Project
|
||||
{
|
||||
|
||||
$filter = new Zend_Filter_Word_DashToCamelCase();
|
||||
|
||||
|
||||
$className = $filter->filter($this->_projectProviderName) . 'Provider';
|
||||
|
||||
|
||||
$class = new Zend_CodeGenerator_Php_Class(array(
|
||||
'name' => $className,
|
||||
'extendedClass' => 'Zend_Tool_Project_Provider_Abstract'
|
||||
));
|
||||
|
||||
|
||||
$methods = array();
|
||||
foreach ($this->_actionNames as $actionName) {
|
||||
$methods[] = new Zend_CodeGenerator_Php_Method(array(
|
||||
@ -133,11 +133,11 @@ class Zend_Tool_Project_Context_Zf_ProjectProviderFile extends Zend_Tool_Project
|
||||
'body' => ' /** @todo Implementation */'
|
||||
));
|
||||
}
|
||||
|
||||
|
||||
if ($methods) {
|
||||
$class->setMethods($methods);
|
||||
}
|
||||
|
||||
|
||||
$codeGenFile = new Zend_CodeGenerator_Php_File(array(
|
||||
'requiredFiles' => array(
|
||||
'Zend/Tool/Project/Provider/Abstract.php',
|
||||
@ -145,8 +145,8 @@ class Zend_Tool_Project_Context_Zf_ProjectProviderFile extends Zend_Tool_Project
|
||||
),
|
||||
'classes' => array($class)
|
||||
));
|
||||
|
||||
|
||||
return $codeGenFile->generate();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: PublicDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: PublicDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,7 +30,7 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
@ -38,12 +38,12 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_PublicDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'public';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,5 +53,5 @@ class Zend_Tool_Project_Context_Zf_PublicDirectory extends Zend_Tool_Project_Con
|
||||
{
|
||||
return 'PublicDirectory';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: PublicImagesDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: PublicImagesDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,20 +30,20 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_PublicImagesDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
class Zend_Tool_Project_Context_Zf_PublicImagesDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'images';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,5 +53,5 @@ class Zend_Tool_Project_Context_Zf_PublicImagesDirectory extends Zend_Tool_Proje
|
||||
{
|
||||
return 'PublicImagesDirectory';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: PublicIndexFile.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: PublicIndexFile.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,20 +30,20 @@ require_once 'Zend/Tool/Project/Context/Filesystem/File.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_PublicIndexFile extends Zend_Tool_Project_Context_Filesystem_File
|
||||
class Zend_Tool_Project_Context_Zf_PublicIndexFile extends Zend_Tool_Project_Context_Filesystem_File
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'index.php';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,7 +53,7 @@ class Zend_Tool_Project_Context_Zf_PublicIndexFile extends Zend_Tool_Project_Con
|
||||
{
|
||||
return 'PublicIndexFile';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getContents()
|
||||
*
|
||||
@ -78,11 +78,11 @@ set_include_path(implode(PATH_SEPARATOR, array(
|
||||
)));
|
||||
|
||||
/** Zend_Application */
|
||||
require_once 'Zend/Application.php';
|
||||
require_once 'Zend/Application.php';
|
||||
|
||||
// Create application, bootstrap, and run
|
||||
\$application = new Zend_Application(
|
||||
APPLICATION_ENV,
|
||||
APPLICATION_ENV,
|
||||
APPLICATION_PATH . '/configs/application.ini'
|
||||
);
|
||||
\$application->bootstrap()
|
||||
@ -91,5 +91,5 @@ EOS
|
||||
));
|
||||
return $codeGenerator->generate();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: PublicScriptsDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: PublicScriptsDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,20 +30,20 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_PublicScriptsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
class Zend_Tool_Project_Context_Zf_PublicScriptsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'js';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,5 +53,5 @@ class Zend_Tool_Project_Context_Zf_PublicScriptsDirectory extends Zend_Tool_Proj
|
||||
{
|
||||
return 'PublicScriptsDirectory';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: PublicStylesheetsDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: PublicStylesheetsDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,20 +30,20 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_PublicStylesheetsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
class Zend_Tool_Project_Context_Zf_PublicStylesheetsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'styles';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,5 +53,5 @@ class Zend_Tool_Project_Context_Zf_PublicStylesheetsDirectory extends Zend_Tool_
|
||||
{
|
||||
return 'PublicStylesheetsDirectory';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: SearchIndexesDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: SearchIndexesDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,20 +30,20 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_SearchIndexesDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
class Zend_Tool_Project_Context_Zf_SearchIndexesDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'search-indexes';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,5 +53,5 @@ class Zend_Tool_Project_Context_Zf_SearchIndexesDirectory extends Zend_Tool_Proj
|
||||
{
|
||||
return 'SearchIndexesDirectory';
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: SessionsDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: SessionsDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,20 +30,20 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_SessionsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
class Zend_Tool_Project_Context_Zf_SessionsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'sessions';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,5 +53,5 @@ class Zend_Tool_Project_Context_Zf_SessionsDirectory extends Zend_Tool_Project_C
|
||||
{
|
||||
return 'SessionsDirectory';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: TemporaryDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: TemporaryDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,20 +30,20 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_TemporaryDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
class Zend_Tool_Project_Context_Zf_TemporaryDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'temp';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,5 +53,5 @@ class Zend_Tool_Project_Context_Zf_TemporaryDirectory extends Zend_Tool_Project_
|
||||
{
|
||||
return 'TemporaryDirectory';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: TestApplicationBootstrapFile.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: TestApplicationBootstrapFile.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,7 +30,7 @@ require_once 'Zend/Tool/Project/Context/Filesystem/File.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
@ -38,12 +38,12 @@ require_once 'Zend/Tool/Project/Context/Filesystem/File.php';
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_TestApplicationBootstrapFile extends Zend_Tool_Project_Context_Filesystem_File
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'bootstrap.php';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,5 +53,5 @@ class Zend_Tool_Project_Context_Zf_TestApplicationBootstrapFile extends Zend_Too
|
||||
{
|
||||
return 'TestApplicationBootstrapFile';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: TestApplicationControllerDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: TestApplicationControllerDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,20 +30,20 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_TestApplicationControllerDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
class Zend_Tool_Project_Context_Zf_TestApplicationControllerDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'controllers';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,5 +53,5 @@ class Zend_Tool_Project_Context_Zf_TestApplicationControllerDirectory extends Ze
|
||||
{
|
||||
return 'TestApplicationControllerDirectory';
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: TestApplicationControllerFile.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: TestApplicationControllerFile.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,7 +30,7 @@ require_once 'Zend/Tool/Project/Context/Filesystem/File.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
@ -38,12 +38,12 @@ require_once 'Zend/Tool/Project/Context/Filesystem/File.php';
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_TestApplicationControllerFile extends Zend_Tool_Project_Context_Filesystem_File
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_forControllerName = '';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,7 +53,7 @@ class Zend_Tool_Project_Context_Zf_TestApplicationControllerFile extends Zend_To
|
||||
{
|
||||
return 'TestApplicationControllerFile';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* init()
|
||||
*
|
||||
@ -66,7 +66,7 @@ class Zend_Tool_Project_Context_Zf_TestApplicationControllerFile extends Zend_To
|
||||
parent::init();
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getContents()
|
||||
*
|
||||
@ -76,9 +76,9 @@ class Zend_Tool_Project_Context_Zf_TestApplicationControllerFile extends Zend_To
|
||||
{
|
||||
|
||||
$filter = new Zend_Filter_Word_DashToCamelCase();
|
||||
|
||||
|
||||
$className = $filter->filter($this->_forControllerName) . 'ControllerTest';
|
||||
|
||||
|
||||
$codeGenFile = new Zend_CodeGenerator_Php_File(array(
|
||||
'requiredFiles' => array(
|
||||
'PHPUnit/Framework/TestCase.php'
|
||||
@ -103,5 +103,5 @@ class Zend_Tool_Project_Context_Zf_TestApplicationControllerFile extends Zend_To
|
||||
|
||||
return $codeGenFile->generate();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: TestApplicationDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: TestApplicationDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,20 +30,20 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_TestApplicationDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
class Zend_Tool_Project_Context_Zf_TestApplicationDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'application';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,5 +53,5 @@ class Zend_Tool_Project_Context_Zf_TestApplicationDirectory extends Zend_Tool_Pr
|
||||
{
|
||||
return 'TestApplicationDirectory';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: TestLibraryBootstrapFile.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: TestLibraryBootstrapFile.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,7 +30,7 @@ require_once 'Zend/Tool/Project/Context/Filesystem/File.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
@ -38,12 +38,12 @@ require_once 'Zend/Tool/Project/Context/Filesystem/File.php';
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_TestLibraryBootstrapFile extends Zend_Tool_Project_Context_Filesystem_File
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'bootstrap.php';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,5 +53,5 @@ class Zend_Tool_Project_Context_Zf_TestLibraryBootstrapFile extends Zend_Tool_Pr
|
||||
{
|
||||
return 'TestLibraryBootstrapFile';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: TestLibraryDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: TestLibraryDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,15 +30,15 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_TestLibraryDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
class Zend_Tool_Project_Context_Zf_TestLibraryDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
@ -53,5 +53,5 @@ class Zend_Tool_Project_Context_Zf_TestLibraryDirectory extends Zend_Tool_Projec
|
||||
{
|
||||
return 'TestLibraryDirectory';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: TestLibraryFile.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: TestLibraryFile.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,7 +30,7 @@ require_once 'Zend/Tool/Project/Context/Filesystem/File.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
@ -38,12 +38,12 @@ require_once 'Zend/Tool/Project/Context/Filesystem/File.php';
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_TestLibraryFile extends Zend_Tool_Project_Context_Filesystem_File
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_forClassName = '';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,7 +53,7 @@ class Zend_Tool_Project_Context_Zf_TestLibraryFile extends Zend_Tool_Project_Con
|
||||
{
|
||||
return 'TestLibraryFile';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* init()
|
||||
*
|
||||
@ -66,7 +66,7 @@ class Zend_Tool_Project_Context_Zf_TestLibraryFile extends Zend_Tool_Project_Con
|
||||
parent::init();
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getContents()
|
||||
*
|
||||
@ -76,9 +76,9 @@ class Zend_Tool_Project_Context_Zf_TestLibraryFile extends Zend_Tool_Project_Con
|
||||
{
|
||||
|
||||
$filter = new Zend_Filter_Word_DashToCamelCase();
|
||||
|
||||
|
||||
$className = $filter->filter($this->_forClassName) . 'Test';
|
||||
|
||||
|
||||
$codeGenFile = new Zend_CodeGenerator_Php_File(array(
|
||||
'requiredFiles' => array(
|
||||
'PHPUnit/Framework/TestCase.php'
|
||||
@ -103,5 +103,5 @@ class Zend_Tool_Project_Context_Zf_TestLibraryFile extends Zend_Tool_Project_Con
|
||||
|
||||
return $codeGenFile->generate();
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: TestLibraryNamespaceDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: TestLibraryNamespaceDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,20 +30,20 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_TestLibraryNamespaceDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
class Zend_Tool_Project_Context_Zf_TestLibraryNamespaceDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_namespaceName = '';
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
@ -58,7 +58,7 @@ class Zend_Tool_Project_Context_Zf_TestLibraryNamespaceDirectory extends Zend_To
|
||||
{
|
||||
return 'TestLibraryNamespaceDirectory';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* init()
|
||||
*
|
||||
@ -71,7 +71,7 @@ class Zend_Tool_Project_Context_Zf_TestLibraryNamespaceDirectory extends Zend_To
|
||||
parent::init();
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getPersistentAttributes()
|
||||
*
|
||||
@ -80,9 +80,9 @@ class Zend_Tool_Project_Context_Zf_TestLibraryNamespaceDirectory extends Zend_To
|
||||
public function getPersistentAttributes()
|
||||
{
|
||||
$attributes = array();
|
||||
$attributes['namespaceName'] = $this->_namespaceName;
|
||||
|
||||
$attributes['namespaceName'] = $this->_namespaceName;
|
||||
|
||||
return $attributes;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: TestPHPUnitConfigFile.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: TestPHPUnitConfigFile.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,7 +30,7 @@ require_once 'Zend/Tool/Project/Context/Filesystem/File.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
@ -38,12 +38,12 @@ require_once 'Zend/Tool/Project/Context/Filesystem/File.php';
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_TestPHPUnitConfigFile extends Zend_Tool_Project_Context_Filesystem_File
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'phpunit.xml';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,5 +53,5 @@ class Zend_Tool_Project_Context_Zf_TestPHPUnitConfigFile extends Zend_Tool_Proje
|
||||
{
|
||||
return 'TestPHPUnitConfigFile';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: TestsDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: TestsDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,20 +30,20 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_TestsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
class Zend_Tool_Project_Context_Zf_TestsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'tests';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,5 +53,5 @@ class Zend_Tool_Project_Context_Zf_TestsDirectory extends Zend_Tool_Project_Cont
|
||||
{
|
||||
return 'TestsDirectory';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: UploadsDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: UploadsDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,20 +30,20 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_UploadsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
class Zend_Tool_Project_Context_Zf_UploadsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'uploads';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,5 +53,5 @@ class Zend_Tool_Project_Context_Zf_UploadsDirectory extends Zend_Tool_Project_Co
|
||||
{
|
||||
return 'UploadsDirectory';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: ViewControllerScriptsDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: ViewControllerScriptsDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,7 +30,7 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
@ -38,7 +38,7 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_ViewControllerScriptsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
@ -48,7 +48,7 @@ class Zend_Tool_Project_Context_Zf_ViewControllerScriptsDirectory extends Zend_T
|
||||
* @var name
|
||||
*/
|
||||
protected $_forControllerName = null;
|
||||
|
||||
|
||||
/**
|
||||
* init()
|
||||
*
|
||||
@ -61,7 +61,7 @@ class Zend_Tool_Project_Context_Zf_ViewControllerScriptsDirectory extends Zend_T
|
||||
parent::init();
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getPersistentAttributes()
|
||||
*
|
||||
@ -73,7 +73,7 @@ class Zend_Tool_Project_Context_Zf_ViewControllerScriptsDirectory extends Zend_T
|
||||
'forControllerName' => $this->_forControllerName
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -83,5 +83,5 @@ class Zend_Tool_Project_Context_Zf_ViewControllerScriptsDirectory extends Zend_T
|
||||
{
|
||||
return 'ViewControllerScriptsDirectory';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: ViewFiltersDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: ViewFiltersDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,7 +30,7 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
@ -38,12 +38,12 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_ViewFiltersDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'filters';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,5 +53,5 @@ class Zend_Tool_Project_Context_Zf_ViewFiltersDirectory extends Zend_Tool_Projec
|
||||
{
|
||||
return 'ViewFiltersDirectory';
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: ViewHelpersDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: ViewHelpersDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,7 +30,7 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
@ -38,12 +38,12 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_ViewHelpersDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'helpers';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,5 +53,5 @@ class Zend_Tool_Project_Context_Zf_ViewHelpersDirectory extends Zend_Tool_Projec
|
||||
{
|
||||
return 'ViewHelpersDirectory';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: ViewScriptsDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: ViewScriptsDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,7 +30,7 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
@ -38,12 +38,12 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_ViewScriptsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'scripts';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,5 +53,5 @@ class Zend_Tool_Project_Context_Zf_ViewScriptsDirectory extends Zend_Tool_Projec
|
||||
{
|
||||
return 'ViewScriptsDirectory';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: ViewsDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: ViewsDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,7 +30,7 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
@ -38,12 +38,12 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_ViewsDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'views';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,5 +53,5 @@ class Zend_Tool_Project_Context_Zf_ViewsDirectory extends Zend_Tool_Project_Cont
|
||||
{
|
||||
return 'ViewsDirectory';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
* @subpackage Framework
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
* @version $Id: ZfStandardLibraryDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: ZfStandardLibraryDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -30,20 +30,20 @@ require_once 'Zend/Tool/Project/Context/Filesystem/Directory.php';
|
||||
*
|
||||
* A profile is a hierarchical set of resources that keep track of
|
||||
* items within a specific project.
|
||||
*
|
||||
*
|
||||
* @category Zend
|
||||
* @package Zend_Tool
|
||||
* @copyright Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
|
||||
* @license http://framework.zend.com/license/new-bsd New BSD License
|
||||
*/
|
||||
class Zend_Tool_Project_Context_Zf_ZfStandardLibraryDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
class Zend_Tool_Project_Context_Zf_ZfStandardLibraryDirectory extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'Zend';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -53,7 +53,7 @@ class Zend_Tool_Project_Context_Zf_ZfStandardLibraryDirectory extends Zend_Tool_
|
||||
{
|
||||
return 'ZfStandardLibraryDirectory';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* create()
|
||||
*
|
||||
@ -69,17 +69,17 @@ class Zend_Tool_Project_Context_Zf_ZfStandardLibraryDirectory extends Zend_Tool_
|
||||
if (strpos($relativePath, DIRECTORY_SEPARATOR . '.') !== false) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
if ($file->isDir()) {
|
||||
mkdir($this->getBaseDirectory() . DIRECTORY_SEPARATOR . $this->getFilesystemName() . $relativePath);
|
||||
} else {
|
||||
copy($file->getPathname(), $this->getBaseDirectory() . DIRECTORY_SEPARATOR . $this->getFilesystemName() . $relativePath);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* _getZfPath()
|
||||
*
|
||||
@ -88,17 +88,17 @@ class Zend_Tool_Project_Context_Zf_ZfStandardLibraryDirectory extends Zend_Tool_
|
||||
protected function _getZfPath()
|
||||
{
|
||||
foreach (explode(PATH_SEPARATOR, get_include_path()) as $includePath) {
|
||||
|
||||
|
||||
if (!file_exists($includePath) || $includePath[0] == '.') {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
if (realpath($checkedPath = rtrim($includePath, '\\/') . '/Zend/Loader.php') !== false && file_exists($checkedPath)) {
|
||||
return dirname($checkedPath);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user