File: docs/CommonMethods.md

Recommend this page to a friend!
  Classes of Kjell-Inge Gustafsson  >  PcGen  >  docs/CommonMethods.md  >  Download  
File: docs/CommonMethods.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: PcGen
Generate PHP code from parameters
Author: By
Last change: 1.1
Date: 1 month ago
Size: 2,549 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)

Common Methods Methods

These methods are shared by all but *Dto :

* ```eol```     _string_, default PHP_EOL
* ```indent```  _string_, default four spaces, for no indent, use '' 
* ```baseIndent```  _string_, default four spaces, for no indent, use '' 
  * The base, leftmost, indent

  • `eol` _string_, default PHP_EOL
  • `indent` _string_, default four spaces, for no indent, use ''
  • `baseIndent` _string_, default four spaces, for no indent, use '' * The base, leftmost, indent
  • Static
  • Return _static_
`baseClass` _BaseA_ anyMgr class
  * updates eol, indent, baseIndent from ```baseClass```
* 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
---

  • Return _string_
* ```eol``` _string_, eol chars
* Return _static_
---

  • Return _string_
* ```indent``` _string_, default four spaces, indentations after baseIndent
---

  • Return _string_
* The base, leftmost, indent
* ```indent``` _string_, default four spaces
* Return _static_
---

  • `eol` _string_, eol chars
  • Note, eol, set here, will affect the whole package
  • Static
* ```indent``` _string_, default four spaces, indentations after baseIndent
* Note, indent, set here, will affect the whole package
* Static

  • The base, leftmost, indent
  • `indent` _string_, default four spaces
  • Note, indent, set here, will affect the whole package
  • Static
* Alter the target PHP version, default (PHP constant) _PHP_VERSION_
  * as for now, used for type hints
* ```phpVersion``` _string_
* Note, phpVersion, set here, will affect the whole package
* Static
---

<small>Return to [README] - [Summary]</small>

[README]:../README.md
[Summary]:Summary.md

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