CWIS Developer Documentation
|
Standard utility library. More...
Static Public Member Functions | |
static | GetMyCaller () |
Get string with file and line number for call to current function. More... | |
static | CheckMyCaller ($DesiredCaller, $ExceptionMsg=NULL) |
Check the caller of the current function. More... | |
static | Pluralize ($Word) |
Pluralize an English word. More... | |
static | Singularize ($Word) |
Singularize an English word. More... | |
Standard utility library.
Definition at line 14 of file StdLib.php.
|
static |
Check the caller of the current function.
In the desired caller parameter, if a file name is specified it should include the ".php" extension but should not have a leading path. In the exception message parameter, the following strings can be used and the appropriate values will be substituted in: FILE% (no leading path), LINE%, FULLFILE% (includes leading path), CLASS%, FUNCTION%, and METHOD% (equivalent to "%CLASS%::%FUNCTION%").
string | $DesiredCaller | String describing desired caller, in the form "Class", "Class::Method", "Function", "File", or "File:Line". |
string | $ExceptionMsg | If specified and the caller was not the desired caller, an exception will be thrown with this message. (OPTIONAL) |
Definition at line 47 of file StdLib.php.
Referenced by Plugin\__construct(), SPTImage\ClearImageSymlinksForResource(), MetadataField\Drop(), SPTImage\GetImageUrlForResource(), Plugin\InstalledVersion(), Plugin\IsInstalled(), and Plugin\IsReady().
|
static |
Get string with file and line number for call to current function.
Definition at line 23 of file StdLib.php.
|
static |
Pluralize an English word.
string | $Word | Word to make plural. |
Definition at line 105 of file StdLib.php.
|
static |
Singularize an English word.
string | $Word | Word to make singular. |
Definition at line 141 of file StdLib.php.
Referenced by MetadataSchema\Create().