PHP Class ZF\Apigility\Admin\Controller\SourceController

Inheritance: extends Zend\Mvc\Controller\AbstractActionController
显示文件 Open project: zfcampus/zf-apigility-admin Class Usage Examples

Protected Properties

Property Type Description
$moduleModel

Public Methods

Method Description
__construct ( ModuleModel $moduleModel )
setRequest ( Zend\Http\Request $request ) Set the request object manually
sourceAction ( )

Protected Methods

Method Description
highlightFileWithNum ( string $file ) : string Highlight a PHP source code with line numbers

Method Details

__construct() public method

public __construct ( ModuleModel $moduleModel )
$moduleModel ZF\Apigility\Admin\Model\ModuleModel

highlightFileWithNum() protected method

Highlight a PHP source code with line numbers
protected highlightFileWithNum ( string $file ) : string
$file string
return string

setRequest() public method

Provided for testing.
public setRequest ( Zend\Http\Request $request )
$request Zend\Http\Request

sourceAction() public method

public sourceAction ( )

Property Details

$moduleModel protected_oe property

protected $moduleModel