本文整理汇总了PHP中Zend_Tool_Project_Context_Filesystem_Directory::init方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Tool_Project_Context_Filesystem_Directory::init方法的具体用法?PHP Zend_Tool_Project_Context_Filesystem_Directory::init怎么用?PHP Zend_Tool_Project_Context_Filesystem_Directory::init使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Zend_Tool_Project_Context_Filesystem_Directory
的用法示例。
在下文中一共展示了Zend_Tool_Project_Context_Filesystem_Directory::init方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: init
public function init()
{
if ($this->_resource->hasAttribute('classNamePrefix')) {
$this->_classNamePrefix = $this->_resource->getAttribute('classNamePrefix');
}
parent::init();
}
示例2: init
/**
* init()
*
* @return Zend_Tool_Project_Context_Zf_ViewControllerScriptsDirectory
*/
public function init()
{
$this->_forControllerName = $this->_resource->getAttribute('forControllerName');
$this->_filesystemName = $this->_forControllerName;
parent::init();
return $this;
}
示例3: init
/**
* init()
*
* @return Zend_Tool_Project_Context_Zf_TestLibraryNamespaceDirectory
*/
public function init()
{
$this->_namespaceName = $this->_resource->getAttribute('namespaceName');
$this->_filesystemName = $this->_namespaceName;
parent::init();
return $this;
}
示例4: init
/**
* init()
*
* @return Zend_Tool_Project_Context_Filesystem_File
*/
public function init()
{
if ($this->_resource->hasAttribute('filesystemName')) {
$this->_filesystemName = $this->_resource->getAttribute('filesystemName');
}
parent::init();
return $this;
}
示例5: init
/**
* init()
*
* @return Zend_Tool_Project_Context_System_ProjectProvidersDirectory
*/
public function init()
{
parent::init();
if (file_exists($this->getPath())) {
foreach (new DirectoryIterator($this->getPath()) as $item) {
if ($item->isFile()) {
$loadableFiles[] = $item->getPathname();
}
}
if ($loadableFiles) {
// @todo process and add the files to the system for usage.
}
}
return $this;
}
示例6: init
/**
* init()
*
* @return Zend_Tool_Project_Context_Zf_ControllerFile
*/
public function init()
{
$this->_filesystemName = $this->_forModuleName = $this->_resource->getAttribute('forModuleName');
parent::init();
return $this;
}