dbXapp 2.0
RAD, CMS, Module und Runtime-IDE fuer dbXapp
Loading...
Searching...
No Matches
generate_mod_placeholders.php File Reference

Go to the source code of this file.

Functions

 mod_class_files ($modulesDir, $modul)
 mod_scan_runs ($modulesDir, $modul)
 mod_is_api_action ($run1)
 mod_run2_variants ($modul, $run1)
 mod_specs_for_module ($modulesDir, $modul, $scan)
 mod_visual_type ($run1, $run2)
 mod_palette ($type)
 mod_svg_content ($modul, $run1, $run2, $params)
 mod_filename ($modul, $run1, $run2)
 mod_build_params ($run1, $run2)

Variables

if(PHP_SAPI !=='cli') $modulesDir = dirname(__DIR__, 2) . DIRECTORY_SEPARATOR
 Erzeugt Platzhalter-SVGs in dbx/modules/{modul}/tpl/mod/ Dateiname: {Modul}_{dbx_run1}.svg oder {Modul}_{dbx_run1}_{dbx_run2}.svg.
 $created = 0
 $skipped = 0
 foreach (glob( $modulesDir . ' *', GLOB_ONLYDIR) ?:array() as $path)

Function Documentation

◆ mod_build_params()

mod_build_params ( $run1,
$run2 )

Definition at line 216 of file generate_mod_placeholders.php.

◆ mod_class_files()

mod_class_files ( $modulesDir,
$modul )

Definition at line 16 of file generate_mod_placeholders.php.

References $base, and $modulesDir.

Referenced by mod_scan_runs().

◆ mod_filename()

mod_filename ( $modul,
$run1,
$run2 )

Definition at line 210 of file generate_mod_placeholders.php.

◆ mod_is_api_action()

mod_is_api_action ( $run1)

Definition at line 68 of file generate_mod_placeholders.php.

Referenced by mod_specs_for_module().

◆ mod_palette()

mod_palette ( $type)

Definition at line 140 of file generate_mod_placeholders.php.

Referenced by mod_svg_content().

◆ mod_run2_variants()

mod_run2_variants ( $modul,
$run1 )

Definition at line 75 of file generate_mod_placeholders.php.

Referenced by mod_specs_for_module().

◆ mod_scan_runs()

mod_scan_runs ( $modulesDir,
$modul )

Definition at line 30 of file generate_mod_placeholders.php.

References $modulesDir, and mod_class_files().

◆ mod_specs_for_module()

mod_specs_for_module ( $modulesDir,
$modul,
$scan )

◆ mod_svg_content()

mod_svg_content ( $modul,
$run1,
$run2,
$params )

Definition at line 153 of file generate_mod_placeholders.php.

References mod_palette(), and mod_visual_type().

◆ mod_visual_type()

mod_visual_type ( $run1,
$run2 )

Definition at line 129 of file generate_mod_placeholders.php.

Referenced by mod_svg_content().

Variable Documentation

◆ $created

$created = 0

◆ $modulesDir

if (PHP_SAPI !=='cli') $modulesDir = dirname(__DIR__, 2) . DIRECTORY_SEPARATOR

Erzeugt Platzhalter-SVGs in dbx/modules/{modul}/tpl/mod/ Dateiname: {Modul}_{dbx_run1}.svg oder {Modul}_{dbx_run1}_{dbx_run2}.svg.

Aufruf: php dbx/modules/dbxContent_admin/tools/generate_mod_placeholders.php

Definition at line 14 of file generate_mod_placeholders.php.

Referenced by mod_class_files(), mod_scan_runs(), and mod_specs_for_module().

◆ $skipped

$skipped = 0

Definition at line 224 of file generate_mod_placeholders.php.

◆ foreach

foreach(glob($modulesDir . ' *', GLOB_ONLYDIR) ?:array() as $path) ( glob($modulesDir . ' *', GLOB_ONLYDIR) ?:array() as $path)

Definition at line 226 of file generate_mod_placeholders.php.