Свойство | Тип | Описание | |
---|---|---|---|
$config | null | DbPatch_Core_Config | ||
$data | array | ||
$db | null | Zend_Db_Adapter_Abstract | ||
$writer | null | DbPatch_Core_Writer |
Метод | Описание | |
---|---|---|
__construct ( array $values = null ) : void | Creates a new value object | |
__get ( string $name ) : mixed | Returns the value requested. | |
__isset ( string $name ) : boolean | Check if a value isset | |
__set ( string $name, mixed $value ) | Sets the value provided. | |
apply ( ) : void | ||
getConfig ( ) : DbPatch_Core_Config | null | ||
getContents ( ) : string | ||
getDb ( ) : null | DbPatch_Core_Db | ||
getFields ( ) : array | Returns the field names of the data array. | |
getHash ( ) : string | Retrieve a file hash | |
getType ( ) : void | ||
getWriter ( ) : DbPatch_Core_Writer | null | ||
loadFromArray ( array $values ) : void | Load the values from an array provided. | |
setConfig ( DbPatch_Core_Config $config ) : DbPatch_Command_Patch_Abstract | ||
setDb ( DbPatch_Core_Db $db ) : DbPatch_Command_Patch_Abstract | ||
setWriter ( DbPatch_Core_Writer $writer ) : DbPatch_Command_Patch_Abstract | ||
show ( ) : void | Echo contents of the patch | |
toArray ( ) : array | Returns the objects values as an array. |
Метод | Описание | |
---|---|---|
fileExists ( string $filename ) : boolean | ||
from_camel_case ( string $str ) : string | Translates a camel case string into a string with underscores (e.g. firstName -> first_name) | |
getComment ( integer $lineNumber ) : string | Extract the first line of comment out of a patch file | |
getPatchFilename ( string $patchPrefix, string $extension, integer $patchNumberSize = 4 ) : string | ||
getPatchNumberSize ( string $patchDirectory ) : integer | ||
to_camel_case ( string $str, boolean $capitalise_first_char = false ) : string | Translates a string with underscores into camel case (e.g. first_name -> firstName) | |
writeFile ( string $filename, string $content ) : void | Create empty patch |
public __construct ( array $values = null ) : void | ||
$values | array | the values to fill the value object with. If left empty we're creating an empty value object. |
Результат | void |
protected fileExists ( string $filename ) : boolean | ||
$filename | string | |
Результат | boolean |
protected from_camel_case ( string $str ) : string | ||
$str | string | String in camel case format |
Результат | string | $str Translated into underscore format |
protected getComment ( integer $lineNumber ) : string | ||
$lineNumber | integer | Line number where the comment is |
Результат | string |
protected getPatchNumberSize ( string $patchDirectory ) : integer | ||
$patchDirectory | string | |
Результат | integer |
public loadFromArray ( array $values ) : void | ||
$values | array | the values we're using to set the values in the value object |
Результат | void |
public setConfig ( DbPatch_Core_Config $config ) : DbPatch_Command_Patch_Abstract | ||
$config | DbPatch_Core_Config | |
Результат | DbPatch_Command_Patch_Abstract |
public setDb ( DbPatch_Core_Db $db ) : DbPatch_Command_Patch_Abstract | ||
$db | DbPatch_Core_Db | |
Результат | DbPatch_Command_Patch_Abstract |
public setWriter ( DbPatch_Core_Writer $writer ) : DbPatch_Command_Patch_Abstract | ||
$writer | DbPatch_Core_Writer | |
Результат | DbPatch_Command_Patch_Abstract |
protected null|DbPatch_Core_Config $config | ||
Результат | null | DbPatch_Core_Config |
protected null|Zend_Db_Adapter_Abstract $db | ||
Результат | null | Zend_Db_Adapter_Abstract |
protected null|DbPatch_Core_Writer $writer | ||
Результат | null | DbPatch_Core_Writer |