[ Index ] |
|
Code source de Symfony 1.0.0 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
Poids: | 438 lignes (15 kb) |
Inclus ou requis: | 0 fois |
Référencé: | 0 fois |
Nécessite: | 0 fichiers |
PropertyTask:: (27 méthodes):
setName()
getName()
setValue()
addText()
getValue()
setFile()
getFile()
setRefid()
getRefid()
setPrefix()
getPrefix()
setEnvironment()
getEnvironment()
setUserProperty()
getUserProperty()
setOverride()
getOverride()
toString()
setFallback()
getFallback()
main()
loadEnvironment()
addProperties()
addProperty()
loadFile()
resolveAllProperties()
parsePropertyString()
Classe: PropertyTask - X-Ref
Task for setting properties in buildfiles.setName($name) X-Ref |
Sets a the name of current property component |
getName() X-Ref |
Pas de description |
setValue($value) X-Ref |
Sets a the value of current property component. param: mixed Value of name, all scalars allowed |
addText($value) X-Ref |
Sets value of property to CDATA tag contents. param: string $values |
getValue() X-Ref |
Pas de description |
setFile($file) X-Ref |
Pas de description |
getFile() X-Ref |
Pas de description |
setRefid(Reference $ref) X-Ref |
Pas de description |
getRefid() X-Ref |
Pas de description |
setPrefix($prefix) X-Ref |
Prefix to apply to properties loaded using <code>file</code>. A "." is appended to the prefix if not specified. param: string $prefix prefix string return: void |
getPrefix() X-Ref |
return: string |
setEnvironment($env) X-Ref |
the prefix to use when retrieving environment variables. Thus if you specify environment="myenv" you will be able to access OS-specific environment variables via property names "myenv.PATH" or "myenv.TERM". <p> Note that if you supply a property name with a final "." it will not be doubled. ie environment="myenv." will still allow access of environment variables through "myenv.PATH" and "myenv.TERM". This functionality is currently only implemented on select platforms. Feel free to send patches to increase the number of platforms this functionality is supported on ;).<br> Note also that properties are case sensitive, even if the environment variables on your operating system are not, e.g. it will be ${env.Path} not ${env.PATH} on Windows 2000. param: env prefix |
getEnvironment() X-Ref |
Pas de description |
setUserProperty($v) X-Ref |
Set whether this is a user property (ro). This is deprecated in Ant 1.5, but the userProperty attribute of the class is still being set via constructor, so Phing will allow this method to function. param: boolean $v |
getUserProperty() X-Ref |
Pas de description |
setOverride($v) X-Ref |
Pas de description |
getOverride() X-Ref |
Pas de description |
toString() X-Ref |
Pas de description |
setFallback($p) X-Ref |
param: Project $p |
getFallback() X-Ref |
Pas de description |
main() X-Ref |
set the property in the project to the value. if the task was give a file or env attribute here is where it is loaded |
loadEnvironment($prefix) X-Ref |
load the environment values param: string $prefix prefix to place before them |
addProperties($props) X-Ref |
iterate through a set of properties, resolve them then assign them |
addProperty($name, $value) X-Ref |
add a name value pair to the project property set param: string $name name of property param: string $value value to set |
loadFile(PhingFile $file) X-Ref |
load properties from a file. param: PhingFile $file |
resolveAllProperties(Properties $props) X-Ref |
Given a Properties object, this method goes through and resolves any references to properties within the object. param: Properties $props The collection of Properties that need to be resolved. return: void |
parsePropertyString($value, &$fragments, &$propertyRefs) X-Ref |
This method will parse a string containing ${value} style property values into two lists. The first list is a collection of text fragments, while the other is a set of string property names null entries in the first list indicate a property reference from the second list. This is slower than regex, but useful for this class, which has to handle multiple parsing passes for properties. param: string $value The string to be scanned for property references param: array &$fragments The found fragments param: array &$propertyRefs The found refs |
Généré le : Fri Mar 16 22:42:14 2007 | par Balluche grâce à PHPXref 0.7 |