[ Index ]
 

Code source de Symfony 1.0.0

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

title

Body

[fermer]

/lib/vendor/propel/om/ -> BaseObject.php (sommaire)

This class contains attributes and methods that are used by all business objects within the system.

Author: Hans Lellelid <hans@xmpl.org> (Propel)
Author: Frank Y. Kim <frank.kim@clearink.com> (Torque)
Author: John D. McNally <jmcnally@collab.net> (Torque)
Version: $Revision: 316 $
Poids: 187 lignes (6 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 10 fonctions

  isModified()
  isColumnModified()
  isNew()
  setNew()
  isDeleted()
  setDeleted()
  resetModified()
  equals()
  hashCode()
  log()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

isModified()   X-Ref
Returns whether the object has been modified.

return: boolean True if the object has been modified.

isColumnModified($col)   X-Ref
Has specified column been modified?

param: string $col
return: boolean True if $col has been modified.

isNew()   X-Ref
Returns whether the object has ever been saved.  This will
be false, if the object was retrieved from storage or was created
and then saved.

return: true, if the object has never been persisted.

setNew($b)   X-Ref
Setter for the isNew attribute.  This method will be called
by Propel-generated children and Peers.

param: boolean $b the state of the object.

isDeleted()   X-Ref
Whether this object has been deleted.

return: boolean The deleted state of this object.

setDeleted($b)   X-Ref
Specify whether this object has been deleted.

param: boolean $b The deleted state of this object.
return: void

resetModified($col = null)   X-Ref
Sets the modified state for the object to be false.

param: string $col If supplied, only the specified column is reset.
return: void

equals($obj)   X-Ref
Compares this with another <code>BaseObject</code> instance.  If
<code>obj</code> is an instance of <code>BaseObject</code>, delegates to
<code>equals(BaseObject)</code>.  Otherwise, returns <code>false</code>.

param: obj The object to compare to.
return: Whether equal to the object specified.

hashCode()   X-Ref
If the primary key is not <code>null</code>, return the hashcode of the
primary key.  Otherwise calls <code>Object.hashCode()</code>.

return: int Hashcode

log($msg, $priority = Propel::LOG_INFO)   X-Ref
Logs a message using Propel::log().

param: string $msg
param: int $priority One of the Propel::LOG_* logging levels
return: boolean



Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7