File: docs/FcnInvokeMgr.md

Recommend this page to a friend!
  Classes of Kjell-Inge Gustafsson  >  PcGen  >  docs/FcnInvokeMgr.md  >  Download  
File: docs/FcnInvokeMgr.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: PcGen
Generate PHP code from parameters
Author: By
Last change: 1.1.14
1.1.11
1.1
Date: 1 month ago
Size: 3,925 bytes
 

Contents

Class file image Download

[comment]: # (This file is part of PcGen, PHP Code Generation support package. Copyright 2020 Kjell-Inge Gustafsson, kigkonsult, All rights reserved, licence GPL 3.0)

FcnInvokeMgr

The `FcnInvokeMgr` class manages (single) function/method invoke * opt with arguments * ex `FcnInvokeMgr::factory( FcnInvokeMgr::THIS_KW, 'method, [ 'arg1', 'arg2' ] )->toString()` * give result `$this->method( $arg1, $arg2 )` (+eol)

Chained invokes manages by [ChainInvokeMgr].

FcnInvokeMgr Methods

Inherited [Common methods]

* ```class``` _string_ one of ```null```, ```parent```, ```self```, ```this```, ```otherClass``` (fqcn), ```$class```
  * convenient constants found in PcGenInterface
* ```fcnName```   _string_, function/method name
* ```arguments``` _array_, note ```FcnInvokeMgr::setArguments()``` below
* For eol and indents, defaults are used
* Static
* Return _static_

  • `entity` _EntityMgr_ * note `EntityMgr` below
  • `arguments` _array_, note `FcnInvokeMgr::setArguments()` below
  • Static
  • Return _static_ ---
* Return _array_, result code rows (null-bytes removed) no trailing eol
* Throws RuntimeException

  • Return _string_ with code rows (extends toArray), each code row with trailing eol
  • Throws RuntimeException ---
* The function/method name
* ```class``` _string_
  * one of ```null```, ```parent```, ```self```, ```this```, ```otherClass``` (fqcn), ```$class```
  * convenient constants found in PcGenInterface
* ```fcnName```  _string_, function/method name
* Return _static_
* Throws InvalidArgumentException

  • The function/method name
  • `entity` _EntityMgr_ * note `EntityMgr` below
  • Return _static_
  • Throws InvalidArgumentException ---
* ```argument``` _ArgumentDto_
  * note ```ArgumentDto``` below
* Return _static_

  • `varDto` _VarDto_ * note `VarDto` below
  • Return _static_
* ```name``` _string_, argument name
* Return _static_
* throws InvalidArgumentException

  • `argumentSets` _array_, elements any of below * name, _string_ * _ArgumentDto_ * note `ArgumentDto` below * _VarDto_ * note `VarDto` below
  • Return _static_
  • Throws InvalidArgumentException ---
* Only applicable for '$class', ignored by the others
* ```isStatic``` _bool_, (default false)
* Return _static_
* Throws InvalidArgumentException
* require (class+)name set

Example : ```FcnInvokeMgr::factory( '$class', 'method' )->toString(); ```<br>
Result : ``` $class->method() ``` (+eol)

Example : ```FcnInvokeMgr::factory( '$class', 'method' )->setIsStatic( true )->toString(); ```<br>
Result : ``` $class::method() ``` (+eol)
---


#### Misc

_ArgumentDto_ instance creation ([ArgumentDto])<br><br>
  • `argName` _string_, argument name

_EntityMgr_ instance creation ([EntityMgr])<br><br>

* ```class```, _string_, one of ```null```, ```parent```, ```self```, ```this```, ```otherClass``` (fqcn), ```$class```
  * convenient constants found in PcGenInterface
* ```fcnName``` _string_, the name

_VarDto_ instance creation ([VarDto])<br><br>
  • `argName` _string_ ---

<small>Return to PcGen [README], [Summary]</small>

[ArgumentDto]:ArgumentDto.md [ChainInvokeMgr]:ChainInvokeMgr.md [Common methods]:CommonMethods.md [EntityMgr]:EntityMgr.md [README]:../README.md [Summary]:Summary.md [VarDto]:VarDto.md


For more information send a message to info at phpclasses dot org.