Class ApiShell
API shell to show method signatures of CakePHP core classes.
Implementation of a Cake Shell to show CakePHP core method signatures.
- AppShell
- ApiShell
Package: Cake\Console\Command
Copyright: Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
License: License (http://www.opensource.org/licenses/mit-license.php)
Location: Cake/Console/Command/ApiShell.php
Copyright: Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
License: License (http://www.opensource.org/licenses/mit-license.php)
Location: Cake/Console/Command/ApiShell.php
Properties summary
-
$paths
publicarray
Map between short name for paths and real paths.
Method Summary
-
_parseClass() protected
Parse a given class (located on given file) and get public methods and their signatures.
-
getOptionParser() public
Get and configure the optionparser. -
help() public
Show help for this shell. -
initialize() public
Override initialize of the Shell -
main() public
Override main() to handle action
Method Detail
_parseClass() protected ¶
_parseClass( string $path , string $class )
Parse a given class (located on given file) and get public methods and their signatures.
Parameters
- string $path
- File path
- string $class
- Class name
Returns
array
Methods and signatures indexed by method name
Methods and signatures indexed by method name