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: Interface.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: Interface.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -25,7 +25,7 @@
|
||||
*
|
||||
* 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)
|
||||
|
@ -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: NotOverwritable.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: NotOverwritable.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -25,7 +25,7 @@
|
||||
*
|
||||
* 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)
|
||||
|
@ -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: ProjectDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: ProjectDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -45,24 +45,24 @@ require_once 'Zend/Tool/Project/Context/System/NotOverwritable.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_System_ProjectDirectory
|
||||
class Zend_Tool_Project_Context_System_ProjectDirectory
|
||||
extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
implements Zend_Tool_Project_Context_System_Interface,
|
||||
Zend_Tool_Project_Context_System_NotOverwritable,
|
||||
Zend_Tool_Project_Context_System_TopLevelRestrictable
|
||||
Zend_Tool_Project_Context_System_TopLevelRestrictable
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = null;
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -72,7 +72,7 @@ class Zend_Tool_Project_Context_System_ProjectDirectory
|
||||
{
|
||||
return 'ProjectDirectory';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* init()
|
||||
*
|
||||
@ -82,22 +82,22 @@ class Zend_Tool_Project_Context_System_ProjectDirectory
|
||||
{
|
||||
// get base path from attributes (would be in path attribute)
|
||||
$projectDirectory = $this->_resource->getAttribute('path');
|
||||
|
||||
|
||||
// if not, get from profile
|
||||
if ($projectDirectory == null) {
|
||||
$projectDirectory = $this->_resource->getProfile()->getAttribute('projectDirectory');
|
||||
}
|
||||
|
||||
|
||||
// if not, exception.
|
||||
if ($projectDirectory == null) {
|
||||
require_once 'Zend/Tool/Project/Exception.php';
|
||||
throw new Zend_Tool_Project_Exception('projectDirectory cannot find the directory for this project.');
|
||||
}
|
||||
|
||||
|
||||
$this->_baseDirectory = rtrim($projectDirectory, '\\/');
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* create()
|
||||
*
|
||||
@ -120,9 +120,9 @@ class Zend_Tool_Project_Context_System_ProjectDirectory
|
||||
}
|
||||
*/
|
||||
}
|
||||
|
||||
|
||||
parent::create();
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -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: ProjectProfileFile.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: ProjectProfileFile.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -45,13 +45,13 @@ require_once 'Zend/Tool/Project/Profile/FileParser/Xml.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_System_ProjectProfileFile
|
||||
class Zend_Tool_Project_Context_System_ProjectProfileFile
|
||||
extends Zend_Tool_Project_Context_Filesystem_File
|
||||
implements Zend_Tool_Project_Context_System_Interface,
|
||||
Zend_Tool_Project_Context_System_NotOverwritable
|
||||
@ -61,12 +61,12 @@ class Zend_Tool_Project_Context_System_ProjectProfileFile
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = '.zfproject.xml';
|
||||
|
||||
|
||||
/**
|
||||
* @var Zend_Tool_Project_Profile
|
||||
*/
|
||||
protected $_profile = null;
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -76,7 +76,7 @@ class Zend_Tool_Project_Context_System_ProjectProfileFile
|
||||
{
|
||||
return 'ProjectProfileFile';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* setProfile()
|
||||
*
|
||||
@ -88,10 +88,10 @@ class Zend_Tool_Project_Context_System_ProjectProfileFile
|
||||
$this->_profile = $profile;
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* save()
|
||||
*
|
||||
* save()
|
||||
*
|
||||
* Proxy to create
|
||||
*
|
||||
* @return Zend_Tool_Project_Context_System_ProjectProfileFile
|
||||
@ -101,7 +101,7 @@ class Zend_Tool_Project_Context_System_ProjectProfileFile
|
||||
parent::create();
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* getContents()
|
||||
*
|
||||
@ -114,5 +114,5 @@ class Zend_Tool_Project_Context_System_ProjectProfileFile
|
||||
$xml = $parser->serialize($profile);
|
||||
return $xml;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
@ -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: ProjectProvidersDirectory.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: ProjectProvidersDirectory.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -40,23 +40,23 @@ require_once 'Zend/Tool/Project/Context/System/NotOverwritable.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_System_ProjectProvidersDirectory
|
||||
class Zend_Tool_Project_Context_System_ProjectProvidersDirectory
|
||||
extends Zend_Tool_Project_Context_Filesystem_Directory
|
||||
implements Zend_Tool_Project_Context_System_Interface,
|
||||
Zend_Tool_Project_Context_System_NotOverwritable
|
||||
{
|
||||
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $_filesystemName = 'providers';
|
||||
|
||||
|
||||
/**
|
||||
* getName()
|
||||
*
|
||||
@ -66,7 +66,7 @@ class Zend_Tool_Project_Context_System_ProjectProvidersDirectory
|
||||
{
|
||||
return 'ProjectProvidersDirectory';
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* init()
|
||||
*
|
||||
@ -75,7 +75,7 @@ class Zend_Tool_Project_Context_System_ProjectProvidersDirectory
|
||||
public function init()
|
||||
{
|
||||
parent::init();
|
||||
|
||||
|
||||
if (file_exists($this->getPath())) {
|
||||
|
||||
foreach (new DirectoryIterator($this->getPath()) as $item) {
|
||||
@ -83,15 +83,15 @@ class Zend_Tool_Project_Context_System_ProjectProvidersDirectory
|
||||
$loadableFiles[] = $item->getPathname();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if ($loadableFiles) {
|
||||
|
||||
|
||||
// @todo process and add the files to the system for usage.
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -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: TopLevelRestrictable.php 16971 2009-07-22 18:05:45Z mikaelkael $
|
||||
* @version $Id: TopLevelRestrictable.php 18951 2009-11-12 16:26:19Z alexander $
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -25,7 +25,7 @@
|
||||
*
|
||||
* 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)
|
||||
@ -33,5 +33,5 @@
|
||||
*/
|
||||
interface Zend_Tool_Project_Context_System_TopLevelRestrictable
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user