Documentation

CRM_Core_CodeGen_Main
in package

Class CRM_Core_CodeGen_Main

Table of Contents

Properties

$buildVersion  : mixed
$cms  : string
drupal, joomla, wordpress
$CoreDAOCodePath  : mixed
$database  : array<string|int, mixed>
$db_version  : string
$digestPath  : string|null
Path in which to store a marker that indicates the last execution of GenCode.
$phpCodePath  : mixed
$schemaPath  : string
ex: schema/Schema.xml
$sourceDigest  : string|null
Digest of the inputs to the code-generator (eg the properties and source files).
$sqlCodePath  : mixed
$tables  : array<string|int, mixed>
Definitions of all tables.
$tplCodePath  : mixed
$verbose  : bool
Should the specification be allowed to echo output.

Methods

__construct()  : mixed
getTasks()  : array<string|int, mixed>
init()  : static
main()  : mixed
Automatically generate a variety of files.
setVerbose()  : CRM_Core_CodeGen_Main

Properties

$buildVersion

public mixed $buildVersion

$cms

drupal, joomla, wordpress

public string $cms

$CoreDAOCodePath

public mixed $CoreDAOCodePath

$database

public array<string|int, mixed> $database

Ex: $database['tableAttributes_modern'] = "ENGINE=InnoDB DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci";

$db_version

public string $db_version

$digestPath

Path in which to store a marker that indicates the last execution of GenCode.

public string|null $digestPath

If a matching marker already exists, GenCode doesn't run.

$phpCodePath

public mixed $phpCodePath

$schemaPath

ex: schema/Schema.xml

public string $schemaPath

$sourceDigest

Digest of the inputs to the code-generator (eg the properties and source files).

public string|null $sourceDigest

$sqlCodePath

public mixed $sqlCodePath

$tables

Definitions of all tables.

public array<string|int, mixed> $tables

Ex: $tables['civicrm_address_format']['className'] = 'CRM_Core_DAO_AddressFormat';

$tplCodePath

public mixed $tplCodePath

$verbose

Should the specification be allowed to echo output.

protected bool $verbose = \TRUE

Methods

__construct()

public __construct(mixed $CoreDAOCodePath, mixed $sqlCodePath, mixed $phpCodePath, mixed $tplCodePath, mixed $IGNORE, mixed $argCms, mixed $argVersion, mixed $schemaPath, mixed $digestPath) : mixed
Parameters
$CoreDAOCodePath : mixed
$sqlCodePath : mixed
$phpCodePath : mixed
$tplCodePath : mixed
$IGNORE : mixed
$argCms : mixed
$argVersion : mixed
$schemaPath : mixed
$digestPath : mixed

getTasks()

public getTasks() : array<string|int, mixed>
Tags
throws
Exception
Return values
array<string|int, mixed>

Array<CRM_Core_CodeGen_ITask>.

init()

public init() : static
Return values
static

main()

Automatically generate a variety of files.

public main() : mixed

        
On this page

Search results