web/lib/Zend/Tool/Framework/Client/Console/HelpSystem.php
changeset 807 877f952ae2bd
parent 207 621fa6caec0c
child 1230 68c69c656a2c
equal deleted inserted replaced
805:5e7a0fedabdf 807:877f952ae2bd
    13  * to license@zend.com so we can send you a copy immediately.
    13  * to license@zend.com so we can send you a copy immediately.
    14  *
    14  *
    15  * @category   Zend
    15  * @category   Zend
    16  * @package    Zend_Tool
    16  * @package    Zend_Tool
    17  * @subpackage Framework
    17  * @subpackage Framework
    18  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    18  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    20  * @version    $Id: HelpSystem.php 20096 2010-01-06 02:05:09Z bkarwin $
    20  * @version    $Id: HelpSystem.php 24593 2012-01-05 20:35:02Z matthew $
    21  */
    21  */
    22 
    22 
    23 /**
    23 /**
    24  * @category   Zend
    24  * @category   Zend
    25  * @package    Zend_Tool
    25  * @package    Zend_Tool
    26  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    26  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    27  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    27  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    28  */
    28  */
    29 class Zend_Tool_Framework_Client_Console_HelpSystem
    29 class Zend_Tool_Framework_Client_Console_HelpSystem
    30 {
    30 {
    31 
    31 
   269                 if (!$actionIsGlobal && count($actionableGlobalMetadatas) == 1) {
   269                 if (!$actionIsGlobal && count($actionableGlobalMetadatas) == 1) {
   270                     $isSingleSpecialProviderAction = true;
   270                     $isSingleSpecialProviderAction = true;
   271                     $this->_respondWithProviderName($providerMetadata);
   271                     $this->_respondWithProviderName($providerMetadata);
   272                     $providerNameDisplayed = true;
   272                     $providerNameDisplayed = true;
   273                 }
   273                 }
   274                 
   274 
   275                 if ($includeAllSpecialties || $isSingleSpecialProviderAction) {
   275                 if ($includeAllSpecialties || $isSingleSpecialProviderAction) {
   276 
   276 
   277                     foreach ($providerSignature->getSpecialties() as $specialtyName) {
   277                     foreach ($providerSignature->getSpecialties() as $specialtyName) {
   278 
   278 
   279                         if ($specialtyName == '_Global') {
   279                         if ($specialtyName == '_Global') {
   301                             $this->_respondWithCommand($providerMetadata, $actionMetadata, $specialtyMetadata, $actionableSpecialtyLongMetadata);
   301                             $this->_respondWithCommand($providerMetadata, $actionMetadata, $specialtyMetadata, $actionableSpecialtyLongMetadata);
   302                         }
   302                         }
   303 
   303 
   304                     }
   304                     }
   305                 }
   305                 }
   306                 
   306 
   307                 // reset the special flag for single provider action with specialty
   307                 // reset the special flag for single provider action with specialty
   308                 $isSingleSpecialProviderAction = false;
   308                 $isSingleSpecialProviderAction = false;
   309 
   309 
   310                 if (!$includeAllSpecialties && count($actionableGlobalMetadatas) > 1) {
   310                 if (!$includeAllSpecialties && count($actionableGlobalMetadatas) > 1) {
   311                     $this->_response->appendContent('    Note: There are specialties, use ', array('color' => 'yellow', 'separator' => false));
   311                     $this->_response->appendContent('    Note: There are specialties, use ', array('color' => 'yellow', 'separator' => false));