[ Index ]
 

Code source de vtiger CRM 5.0.2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/log4php/config/ -> LoggerPropertySetter.php (sommaire)

log4php is a PHP port of the log4j java logging package. <p>This framework is based on log4j (see {@link http://jakarta.apache.org/log4j log4j} for details).</p> <p>Design, strategies and part of the methods documentation are developed by log4j team (Ceki Gülcü as log4j project founder and {@link http://jakarta.apache.org/log4j/docs/contributors.html contributors}).</p>

Poids: 161 lignes (6 kb)
Inclus ou requis: 1 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

LoggerPropertySetter:: (5 méthodes):
  LoggerPropertySetter()
  setPropertiesByObject()
  setProperties()
  setProperty()
  activate()


Classe: LoggerPropertySetter  - X-Ref

General purpose Object property setter. Clients repeatedly invokes
{@link setProperty()} in order to invoke setters
on the Object specified in the constructor.

Usage:
<code>
$ps = new LoggerPropertySetter($anObject);
$ps->set("name", "Joe");
$ps->set("age", 32);
$ps->set("isMale", true);
</code>
will cause the invocations
<code>
$anObject->setName("Joe");
$anObject->setAge(32);
$anObject->setMale(true)
</code>
if such methods exist.

LoggerPropertySetter(&$obj)   X-Ref
Create a new LoggerPropertySetter for the specified Object.
This is done in prepartion for invoking {@link setProperty()}
one or more times.

param: object &$obj the object for which to set properties

setPropertiesByObject(&$obj, $properties, $prefix)   X-Ref
Set the properties of an object passed as a parameter in one
go. The <code>properties</code> are parsed relative to a
<code>prefix</code>.

param: object &$obj The object to configure.
param: array $properties An array containing keys and values.
param: string $prefix Only keys having the specified prefix will be set.

setProperties($properties, $prefix)   X-Ref
Set the properites for the object that match the
<code>prefix</code> passed as parameter.

param: array $properties An array containing keys and values.
param: string $prefix Only keys having the specified prefix will be set.

setProperty($name, $value)   X-Ref
Set a property on this PropertySetter's Object. If successful, this
method will invoke a setter method on the underlying Object. The
setter is the one for the specified property name and the value is
determined partly from the setter argument type and partly from the
value specified in the call to this method.

<p>If the setter expects a String no conversion is necessary.
If it expects an int, then an attempt is made to convert 'value'
to an int using new Integer(value). If the setter expects a boolean,
the conversion is by new Boolean(value).

param: string $name    name of the property
param: string $value   String value of the property

activate()   X-Ref
Pas de description



Généré le : Sun Feb 25 10:22:19 2007 par Balluche grâce à PHPXref 0.7