I had no idea at all about PHP or programming until I started reading your website! "Non avevo idea affatto di programmazione PHP o fino a quando ho iniziato a leggere il tuo sito!"
Scott

RocksRelation Class

Descrizione

Questa classe rappresenta un rapporto nel database. Quando questo viene eseguito, restituirà una matrice di oggetti RocksDBO o solo un singolo. Questo è usualy utilizzato internamente.

  • string $foriegnKey: the name of the field in the dbo table that is the foriegn key proprietà: stringa $ foriegnKey: il nome del campo nella tabella dbo che è la chiave Foriegn
  • string $otherTable: the name of the other table that it relates to proprietà: stringa $ otherTable: il nome della tabella altro che si riferisce alla
  • string $otherTableForiegnKey: the name of the foriegn key in the other table proprietà: stringa $ otherTableForiegnKey: il nome della chiave Foriegn nell'altra tabella
  • string $relationName: the name of the relationship proprietà: stringa $ RelationName: il nome della relazione
  • string $relationType: the type of relationship this can be null or RocksOneToOne proprietà: stringa $ relationType: il tipo di relazione può essere nullo o RocksOneToOne
  • array $relations: this is a array of RocksRelation which represent the relationships related to this relationship Proprietà: array $ rapporti: si tratta di una serie di RocksRelation che rappresentano i rapporti relativi a questo rapporto
  • array $orderBys: this is a array of RocksOrderBy which represent the ordering of this relationship Proprietà: array $ orderBys: si tratta di una serie di RocksOrderBy che rappresentano l'ordinamento di questo rapporto
  • Dominic Skinner autore: Dominic Skinner
  • 0.2.1 Versione: 0.2.1
  • abstract:

) Situato in / RocksRelation.php (linea 19)

Metodo Summary
__construct ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) RocksRelation __construct (string $ foriegnKey, string $ otherTable, string $ otherTableForiegnKey, [string $ RelationName = null], [string $ relationType = null])
AddExcludedValue ( vuoto AddExcludedValue ( ) $ Valore)
AddOrderBy ( string $fieldName , [ string $orderDirection = null ]) vuoto addOrderBy (string $ fieldName, [string $ orderDirection = null])
AddRelation ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) vuoto AddRelation (string $ foriegnKey, string $ otherTable, string $ otherTableForiegnKey, [string $ RelationName = null], [string $ relationType = null])
Alternative ( vuoto Alternative ( ) $ Relazione)
GetOrderBy () vuoto GetOrderBy ()
IsExcludedValue ( vuoto IsExcludedValue ( ) $ Valore)
__get ( vuoto __get ( ) $ Name)
__set ( annullare __set ( , $ Var, ) $ VarValue)
Metodi
(line 41 ) Costruttore __ construct (linea 41)

Il costruttore consente l'oggetto relazione da configurare.

  • public accesso: public
__construct ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) RocksRelation __ construct (string $ foriegnKey, string $ otherTable, string $ otherTableForiegnKey, [string $ RelationName = null], [string $ relationType = null])
  • $foriegnKey : the foriegn key in the current object that this relationship should be created on stringa $ foriegnKey: la chiave Foriegn nell'oggetto corrente che questo rapporto deve essere creato sul
  • $otherTable : the other table this relationship is with stringa $ otherTable: l'altra tabella questo rapporto è con
  • $otherTableForiegnKey : the key in the other table that this relationship is with stringa $ otherTableForiegnKey: la chiave dell'altra tabella che questo rapporto è con
  • $relationName : the name of the relationship stringa $ RelationName: il nome della relazione
  • $relationType : the type of the relationship if it is a one to one relationship or not stringa $ relationType: il tipo di rapporto se è un rapporto uno a uno oppure no
(line 146 ) AddExcludedValue (linea 146)
  • public accesso: public
AddExcludedValue ( AddExcludedValue vuoto ( ) $ Valore)
  • $ Value
(line 91 ) AddOrderBy (linea 91)

Gli ordini gli elementi che vengono restituiti nel rapporto

  • public accesso: public
AddOrderBy ( string $fieldName , [ string $orderDirection = null ]) vuoto addOrderBy (string $ fieldName, [string $ orderDirection = null])
  • $fieldName : the field name to be ordered stringa $ fieldName: il nome del campo da ordinare
  • $orderDirection : the direction the field should be ordered. stringa $ orderDirection: la direzione del campo deve essere ordinato. Questo può prendere la RocksDesc valori o RocksAsc.
(line 71 ) AddRelation (linea 71)

La aggiunge un oggetto relazione all'oggetto relazione esistente

  • public accesso: public
AddRelation ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) vuoto AddRelation (string $ foriegnKey, string $ otherTable, string $ otherTableForiegnKey, [string $ RelationName = null], [string $ relationType = null])
  • $foriegnKey : the foriegn key in the current object that this relationship should be created on stringa $ foriegnKey: la chiave Foriegn nell'oggetto corrente che questo rapporto deve essere creato sul
  • $otherTable : the other table this relationship is with stringa $ otherTable: l'altra tabella questo rapporto è con
  • $otherTableForiegnKey : the key in the other table that this relationship is with stringa $ otherTableForiegnKey: la chiave dell'altra tabella che questo rapporto è con
  • $relationName : the name of the relationship stringa $ RelationName: il nome della relazione
  • $relationType : the type of the relationship if it is a one to one relationship or not stringa $ relationType: il tipo di rapporto se è un rapporto uno a uno oppure no
(line 122 ) Alternative (linea 122)
  • public accesso: public
Alternative ( Alternative vuoto ( ) $ Relazione)
  • $ Relazione
(line 133 ) GetNextAlternativeRelation (linea 133)
  • public accesso: public
GetNextAlternativeRelation () GetNextAlternativeRelation vuoto ()
(line 100 ) GetOrderBy (linea 100)

Restituisce l'SQL che rappresenta l'ordine, questo viene di solito utilizzato internamente.

  • public accesso: public
GetOrderBy () GetOrderBy vuoto ()
(line 80 ) HasRelations (linea 80)

Questo è il numero di relazioni questa relazione ha

  • public accesso: public
HasRelations () HasRelations void ()
(line 152 ) IsExcludedValue (linea 152)
  • public accesso: public
IsExcludedValue ( IsExcludedValue vuoto ( ) $ Valore)
  • $ Value
(line 157 ) __get (linea 157)
  • public accesso: public
__get ( __ vuoto get ( ) $ Name)
  • $ Name
(line 166 ) __set (linea 166)
  • public accesso: public
__set ( void __ set ( , $ Var, ) $ VarValue)
  • $ Var
  • $ VarValue

Nessun commento è stato fornito.
security image

Scritto da Dominic Skinner
Ultimo aggiornamento: 2011/10/25 16:00:38