Your PHP skills tool showed me were I needed to improve and how to do it! "Votre PHP compétences outil m'a montré étaient que je devais améliorer et comment le faire!"
Tom

Classe RocksRelation

Description

Cette classe représente une relation dans la base de données. Lorsque cela est exécuté, il sera de retour soit un tableau d'objets RocksDBO ou juste un seul. Ceci est usualy utilisé en interne.

  • string $foriegnKey: the name of the field in the dbo table that is the foriegn key la propriété: $ string foriegnKey: le nom du champ dans la table dbo qui est la clé foriegn
  • string $otherTable: the name of the other table that it relates to la propriété: $ string uneautretable: le nom de l'autre table, ce qui a trait à la
  • string $otherTableForiegnKey: the name of the foriegn key in the other table la propriété: $ string otherTableForiegnKey: le nom de la clé foriegn dans l'autre table
  • string $relationName: the name of the relationship la propriété: $ string RelationName: le nom de la relation
  • string $relationType: the type of relationship this can be null or RocksOneToOne la propriété: $ string relationType: le type de relation, cela peut être nulle ou RocksOneToOne
  • array $relations: this is a array of RocksRelation which represent the relationships related to this relationship la propriété: $ array relations: il s'agit d'un tableau de RocksRelation qui représentent les relations liées à cette relation
  • array $orderBys: this is a array of RocksOrderBy which represent the ordering of this relationship la propriété: $ array orderBys: il s'agit d'un tableau de RocksOrderBy qui représentent l'ordre de cette relation
  • Dominic Skinner Auteur: Dominic Skinner
  • 0.2.1 Version: 0.2.1
  • résumé:

) Situé dans / RocksRelation.php (ligne 19)

Résumé de la méthode
__construct ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) RocksRelation __construct ($ string foriegnKey, string $ uneautretable, string $ otherTableForiegnKey, [string $ RelationName = null], [string $ relationType = null])
AddExcludedValue ( nulle AddExcludedValue ( ) $ Valeur)
AddOrderBy ( string $fieldName , [ string $orderDirection = null ]) nulle AddOrderBy (string $ fieldName, [string $ orderDirection = null])
AddRelation ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) nulle AddRelation ($ string foriegnKey, string $ uneautretable, string $ otherTableForiegnKey, [string $ RelationName = null], [string $ relationType = null])
Alternative ( nulle alternative ( ) $ Par rapport)
GetOrderBy () nulle GetOrderBy ()
IsExcludedValue ( nulle IsExcludedValue ( ) $ Valeur)
__get ( nulle __get ( ) $ Nom)
__set ( annuler __set ( , $ Var, ) $ VarValue)
Méthodes
(line 41 ) __ Constructeur de construire (ligne 41)

Le constructeur permet à l'objet par rapport à être configuré.

  • public accès: public
__construct ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) RocksRelation __ construct ($ string foriegnKey, string $ uneautretable, string $ otherTableForiegnKey, [string $ RelationName = null], [string $ relationType = null])
  • $foriegnKey : the foriegn key in the current object that this relationship should be created on $ string foriegnKey: la clé foriegn dans l'objet courant que cette relation doit être créé sur
  • $otherTable : the other table this relationship is with $ string uneautretable: l'autre table de cette relation est avec
  • $otherTableForiegnKey : the key in the other table that this relationship is with $ string otherTableForiegnKey: la clé dans l'autre table que cette relation est avec
  • $relationName : the name of the relationship $ string RelationName: le nom de la relation
  • $relationType : the type of the relationship if it is a one to one relationship or not $ string relationType: le type de la relation si elle est une relation one to one ou non
(line 146 ) AddExcludedValue (ligne 146)
  • public accès: public
AddExcludedValue ( nulle AddExcludedValue ( ) $ Valeur)
  • $ Valeur
(line 91 ) AddOrderBy (ligne 91)

Les commandes des articles qui sont retournés dans la relation

  • public accès: public
AddOrderBy ( string $fieldName , [ string $orderDirection = null ]) nulle AddOrderBy (string $ fieldName, [string $ orderDirection = null])
  • $fieldName : the field name to be ordered string $ fieldName: le nom du champ à commander
  • $orderDirection : the direction the field should be ordered. $ string orderDirection: la direction sur le terrain devrait être ordonné. Cela peut prendre la RocksDesc valeurs ou RocksAsc.
(line 71 ) AddRelation (ligne 71)

Le ajoute un objet par rapport à l'objet relation existante

  • public accès: public
AddRelation ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) AddRelation vide (string $ foriegnKey, string $ uneautretable, string $ otherTableForiegnKey, [string $ RelationName = null], [string $ relationType = null])
  • $foriegnKey : the foriegn key in the current object that this relationship should be created on $ string foriegnKey: la clé foriegn dans l'objet courant que cette relation doit être créé sur
  • $otherTable : the other table this relationship is with $ string uneautretable: l'autre table de cette relation est avec
  • $otherTableForiegnKey : the key in the other table that this relationship is with $ string otherTableForiegnKey: la clé dans l'autre table que cette relation est avec
  • $relationName : the name of the relationship $ string RelationName: le nom de la relation
  • $relationType : the type of the relationship if it is a one to one relationship or not $ string relationType: le type de la relation si elle est une relation one to one ou non
(line 122 ) Alternative (ligne 122)
  • public accès: public
Alternative ( Alternative vide ( ) $ Par rapport)
  • $ Par rapport
(line 133 ) GetNextAlternativeRelation (ligne 133)
  • public accès: public
GetNextAlternativeRelation () GetNextAlternativeRelation vide ()
(line 100 ) GetOrderBy (ligne 100)

Retourne le code SQL qui représente la commande, ce qui est généralement utilisé en interne.

  • public accès: public
GetOrderBy () nulle GetOrderBy ()
(line 80 ) HasRelations (ligne 80)

C'est le nombre de relations de cette relation a

  • public accès: public
HasRelations () HasRelations vide ()
(line 152 ) IsExcludedValue (ligne 152)
  • public accès: public
IsExcludedValue ( nulle IsExcludedValue ( ) $ Valeur)
  • $ Valeur
(line 157 ) __get (ligne 157)
  • public accès: public
__get ( void __ get ( ) $ Nom)
  • $ Nom
(line 166 ) __set (ligne 166)
  • public accès: public
__set ( ensemble void __ ( , $ Var, ) $ VarValue)
  • $ Var
  • $ VarValue

Pas de commentaires ont été fournis.
image de sécurité

Écrit par Dominic Skinner
Dernière mise à jour: 25/10/2011 16:00:38