I had no idea at all about PHP or programming until I started reading your website! "No tenía ni idea en absoluto acerca de PHP o de programación hasta que empecé a leer tu sitio!"
Scott,

RocksRelation Clase

Descripción

Esta clase representa una relación en la base de datos. Cuando este se ejecuta devolverá un array de objetos RocksDBO o simplemente uno solo. Esto se usualy utiliza internamente.

  • string $foriegnKey: the name of the field in the dbo table that is the foriegn key la propiedad: $ cadena foriegnKey: el nombre del campo en la tabla dbo que es la clave externa
  • string $otherTable: the name of the other table that it relates to la propiedad: $ cadena otherTable: el nombre de la otra tabla que se relaciona con
  • string $otherTableForiegnKey: the name of the foriegn key in the other table la propiedad: $ cadena otherTableForiegnKey: el nombre de la clave externa de la otra tabla
  • string $relationName: the name of the relationship la propiedad: $ cadena relationName: el nombre de la relación
  • string $relationType: the type of relationship this can be null or RocksOneToOne la propiedad: $ cadena RelationType: el tipo de relación que esto puede ser nulo o RocksOneToOne
  • array $relations: this is a array of RocksRelation which represent the relationships related to this relationship la propiedad: $ array las relaciones: se trata de una serie de RocksRelation que representan las relaciones relacionadas con esta relación
  • array $orderBys: this is a array of RocksOrderBy which represent the ordering of this relationship propiedad: array $ orderBys: se trata de una serie de RocksOrderBy que representan el orden de esta relación
  • Dominic Skinner Autor: Domingo Skinner
  • 0.2.1 Versión: 0.2.1
  • Resumen:

) Situado en / RocksRelation.php (línea 19)

Method 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 ( void AddExcludedValue ( ) $ Valor)
AddOrderBy ( string $fieldName , [ string $orderDirection = null ]) void AddOrderBy (string $ fieldName, [string $ orderDirection = null])
AddRelation ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) void AddRelation (string $ foriegnKey, string $ otherTable, string $ otherTableForiegnKey, [string $ relationName = null], [string $ RelationType = null])
Alternative ( void Alternativa ( ) $ Relación)
GetOrderBy () void GetOrderBy ()
IsExcludedValue ( void IsExcludedValue ( ) $ Valor)
__get ( void __get ( ) $ Nombre)
__set ( anular __set ( , $ Var, ) $ VarValue)
Métodos
(line 41 ) Constructor __ construct (línea 41)

El constructor permite que el objeto de relación que desea configurar.

  • public Acceso: Público
__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 $ string foriegnKey: la clave externa en el objeto actual que esta relación debe ser creado en
  • $otherTable : the other table this relationship is with $ string otherTable: la otra tabla esta relación es con
  • $otherTableForiegnKey : the key in the other table that this relationship is with $ string otherTableForiegnKey: la llave en la otra tabla que esta relación es con
  • $relationName : the name of the relationship $ string relationName: el nombre de la relación
  • $relationType : the type of the relationship if it is a one to one relationship or not cadena $ RelationType: el tipo de la relación si se trata de una relación de uno a uno o no
(line 146 ) AddExcludedValue (línea 146)
  • public Acceso: Público
AddExcludedValue ( void AddExcludedValue ( ) $ Valor)
  • $ Valor
(line 91 ) AddOrderBy (línea 91)

Las órdenes de los elementos que se devuelven en la relación

  • public Acceso: Público
AddOrderBy ( string $fieldName , [ string $orderDirection = null ]) void AddOrderBy (string $ fieldName, [string $ orderDirection = null])
  • $fieldName : the field name to be ordered string $ fieldName: el nombre del campo será condenada
  • $orderDirection : the direction the field should be ordered. $ string orderDirection: la dirección del campo debe ser ordenado. Esto puede tomar la RocksDesc valores o RocksAsc.
(line 71 ) AddRelation (línea 71)

El agrega un objeto de relación con el objeto de relación existente

  • public Acceso: Público
AddRelation ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) AddRelation vacío (cadena $ 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 $ string foriegnKey: la clave externa en el objeto actual que esta relación debe ser creado en
  • $otherTable : the other table this relationship is with $ string otherTable: la otra tabla esta relación es con
  • $otherTableForiegnKey : the key in the other table that this relationship is with $ string otherTableForiegnKey: la llave en la otra tabla que esta relación es con
  • $relationName : the name of the relationship $ string relationName: el nombre de la relación
  • $relationType : the type of the relationship if it is a one to one relationship or not cadena $ RelationType: el tipo de la relación si se trata de una relación de uno a uno o no
(line 122 ) Alternativa (línea 122)
  • public Acceso: Público
Alternative ( void Alternativa ( ) $ Relación)
  • $ Relación
(line 133 ) GetNextAlternativeRelation (línea 133)
  • public Acceso: Público
GetNextAlternativeRelation () GetNextAlternativeRelation vacío ()
(line 100 ) GetOrderBy (línea 100)

Devuelve el SQL que representa el orden, esto generalmente se utiliza internamente.

  • public Acceso: Público
GetOrderBy () void GetOrderBy ()
(line 80 ) HasRelations (línea 80)

Este es el número de relaciones esta relación tiene

  • public Acceso: Público
HasRelations () HasRelations vacío ()
(line 152 ) IsExcludedValue (línea 152)
  • public Acceso: Público
IsExcludedValue ( void IsExcludedValue ( ) $ Valor)
  • $ Valor
(line 157 ) __get (línea 157)
  • public Acceso: Público
__get ( __ vacío get ( ) $ Nombre)
  • $ Nombre
(line 166 ) __set (línea 166)
  • public Acceso: Público
__set ( void __ set ( , $ Var, ) $ VarValue)
  • $ Var
  • $ VarValue

No hay comentarios han sido proporcionados.
la seguridad de la imagen

Escrito por Domingo Skinner
Última actualización: 25/10/2011 16:00:38