I think this organisation will be one of the big players of the future in the PHP world. "Eu acho que essa organização vai ser um dos grandes jogadores do futuro no mundo do PHP."
Darren

Classe RocksRelation

Descrição

Esta classe representa um relacionamento no banco de dados. Quando este é executado, ele retornará um array de objetos RocksDBO ou apenas um único. Isto é usualy usado internamente.

  • string $foriegnKey: the name of the field in the dbo table that is the foriegn key propriedade: string $ foriegnKey: o nome do campo na tabela dbo que é a chave foriegn
  • string $otherTable: the name of the other table that it relates to propriedade: string $ tbl_outra: o nome da outra tabela que se refere à
  • string $otherTableForiegnKey: the name of the foriegn key in the other table propriedade: string $ otherTableForiegnKey: o nome da chave foriegn na outra tabela
  • string $relationName: the name of the relationship propriedade: RelationName string $: o nome da relação
  • string $relationType: the type of relationship this can be null or RocksOneToOne propriedade: string $ TipoDoRelacionamento: o tipo de relação que pode ser nulo ou RocksOneToOne
  • array $relations: this is a array of RocksRelation which represent the relationships related to this relationship propriedade: array $ relações: esta é uma matriz de RocksRelation que representam as relações relacionadas com esta relação
  • array $orderBys: this is a array of RocksOrderBy which represent the ordering of this relationship propriedade: array $ orderBys: este é um conjunto de RocksOrderBy que representam a ordenação dessa relação
  • Dominic Skinner autor: Dominic Skinner
  • 0.2.1 versão: 0.2.1
  • resumo:

) Localizado em / RocksRelation.php (linha 19)

Resumo método
__construct ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) RocksRelation __construct (string $ foriegnKey, string $ tbl_outra, string $ otherTableForiegnKey, [string $ RelationName = null], [string TipoDoRelacionamento $ = null])
AddExcludedValue ( vazio AddExcludedValue ( ) $ Value)
AddOrderBy ( string $fieldName , [ string $orderDirection = null ]) vazio AddOrderBy (string $ fieldName, [string OrderDirection $ = null])
AddRelation ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) vazio AddRelation (string $ foriegnKey, string $ tbl_outra, string $ otherTableForiegnKey, [string $ RelationName = null], [string TipoDoRelacionamento $ = null])
Alternative ( vazio Alternativa ( ) $ Relação)
GetOrderBy () vazio GetOrderBy ()
HasRelations () vazios HasRelations ()
IsExcludedValue ( vazio IsExcludedValue ( ) $ Value)
__get ( vazio __get ( ) $ Nome)
__set ( anular __set ( , $ Var, ) $ VarValue)
Métodos
(line 41 ) __ Construtor construir (linha 41)

O construtor permite que o objecto relação a ser configurado.

  • public acesso: public
__construct ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) RocksRelation __ construct (string $ foriegnKey, string $ tbl_outra, string $ otherTableForiegnKey, [string $ RelationName = null], [string TipoDoRelacionamento $ = null])
  • $foriegnKey : the foriegn key in the current object that this relationship should be created on string $ foriegnKey: a chave foriegn no objeto atual que esta relação deve ser criado em
  • $otherTable : the other table this relationship is with string $ tbl_outra: outra tabela esta relação é com
  • $otherTableForiegnKey : the key in the other table that this relationship is with string $ otherTableForiegnKey: a chave na outra tabela que essa relação é com
  • $relationName : the name of the relationship string $ RelationName: o nome da relação
  • $relationType : the type of the relationship if it is a one to one relationship or not amarrá $ TipoDoRelacionamento: o tipo de a relação se é uma relação de 12:59 ou não
(line 146 ) AddExcludedValue (linha 146)
  • public acesso: public
AddExcludedValue ( AddExcludedValue vazio ( ) $ Value)
  • $ Value
(line 91 ) AddOrderBy (linha 91)

As ordens dos itens que são devolvidos na relação

  • public acesso: public
AddOrderBy ( string $fieldName , [ string $orderDirection = null ]) AddOrderBy vazio (string $ fieldName, [string OrderDirection $ = null])
  • $fieldName : the field name to be ordered string $ fieldName: o nome do campo a ser ordenado
  • $orderDirection : the direction the field should be ordered. OrderDirection string $: a direção do campo devem ser ordenados. Isso pode levar a RocksDesc valores ou RocksAsc.
(line 71 ) AddRelation (linha 71)

O adiciona um objeto relação ao objeto de relação existente

  • public acesso: public
AddRelation ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) AddRelation void (string $ foriegnKey, string $ tbl_outra, string $ otherTableForiegnKey, [string $ RelationName = null], [string TipoDoRelacionamento $ = null])
  • $foriegnKey : the foriegn key in the current object that this relationship should be created on string $ foriegnKey: a chave foriegn no objeto atual que esta relação deve ser criado em
  • $otherTable : the other table this relationship is with string $ tbl_outra: outra tabela esta relação é com
  • $otherTableForiegnKey : the key in the other table that this relationship is with string $ otherTableForiegnKey: a chave na outra tabela que essa relação é com
  • $relationName : the name of the relationship string $ RelationName: o nome da relação
  • $relationType : the type of the relationship if it is a one to one relationship or not amarrá $ TipoDoRelacionamento: o tipo de a relação se é uma relação de 12:59 ou não
(line 122 ) Alternativa (linha 122)
  • public acesso: public
Alternative ( Alternativa void ( ) $ Relação)
  • $ Relação
(line 133 ) GetNextAlternativeRelation (linha 133)
  • public acesso: public
GetNextAlternativeRelation () GetNextAlternativeRelation void ()
(line 100 ) GetOrderBy (linha 100)

Retorna o SQL que representa a ordem, isso geralmente é usado internamente.

  • public acesso: public
GetOrderBy () GetOrderBy vazio ()
(line 80 ) HasRelations (linha 80)

Este é o número de relações esta relação tem

  • public acesso: public
HasRelations () HasRelations (void)
(line 152 ) IsExcludedValue (linha 152)
  • public acesso: public
IsExcludedValue ( IsExcludedValue vazio ( ) $ Value)
  • $ Value
(line 157 ) __get (linha 157)
  • public acesso: public
__get ( void __ get ( ) $ Nome)
  • $ Name
(line 166 ) __set (linha 166)
  • public acesso: public
__set ( __ set (void , $ Var, ) $ VarValue)
  • $ Var
  • $ VarValue

Nenhum comentário foi fornecida.
imagem de segurança

Escrito por Dominic Skinner
Última Atualização: 2011/10/25 16:00:38