I thought I knew all about PHP until I found this website! "Eu pensei que sabia tudo sobre PHP até que encontrei este site!"
Jen

Classe RocksRelation

Descrição

Esta classe representa uma relação na base de dados. Quando este é executado ele irá retornar um array de objetos RocksDBO ou apenas um único. Isso geralmente é 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 estrangeira
  • string $otherTable: the name of the other table that it relates to propriedade: string $ tbl_outra: o nome da outra tabela que se relaciona com
  • string $otherTableForiegnKey: the name of the foriegn key in the other table propriedade: string $ otherTableForiegnKey: o nome da chave estrangeira na outra tabela
  • string $relationName: the name of the relationship propriedade: string $ RelationName: o nome da relação
  • string $relationType: the type of relationship this can be null or RocksOneToOne propriedade: relationType string $: 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 série 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 $ relationType = 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 $ relationType = null])
Alternative ( vazio Alternativa ( ) $ Parentesco)
GetOrderBy () vazio GetOrderBy ()
IsExcludedValue ( vazio IsExcludedValue ( ) $ Value)
__get ( vazio __get ( ) $ Name)
__set ( vazio __set ( , $ Var, ) $ VarValue)
Métodos
(line 41 ) Construtor __construct (linha 41)

O construtor permite que o objeto de relação a ser configurada.

  • public Acesso: Público
__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 $ relationType = null])
  • $foriegnKey : the foriegn key in the current object that this relationship should be created on string $ foriegnKey: a chave estrangeira 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 esta 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 relationType string $: o tipo de relação se é um relacionamento 1-1 ou não
(line 146 ) AddExcludedValue (linha 146)
  • public Acesso: Público
AddExcludedValue ( AddExcludedValue vazio ( ) $ Value)
  • $ Value
(line 91 ) AddOrderBy (linha 91)

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

  • public Acesso: Público
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. cadeia orderDirection $: a direção que o campo deve ser ordenada. Isto pode levar a RocksDesc valores ou RocksAsc.
(line 71 ) AddRelation (linha 71)

O adiciona um objeto relação com o objeto relação existente

  • public Acesso: Público
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 $ relationType = null])
  • $foriegnKey : the foriegn key in the current object that this relationship should be created on string $ foriegnKey: a chave estrangeira 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 esta 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 relationType string $: o tipo de relação se é um relacionamento 1-1 ou não
(line 122 ) Alternativa (linha 122)
  • public Acesso: Público
Alternative ( Alternative void ( ) $ Parentesco)
  • $ Relação
(line 133 ) GetNextAlternativeRelation (linha 133)
  • public Acesso: Público
GetNextAlternativeRelation () GetNextAlternativeRelation void ()
(line 100 ) GetOrderBy (linha 100)

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

  • public Acesso: Público
GetOrderBy () GetOrderBy vazio ()
(line 80 ) HasRelations (linha 80)

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

  • public Acesso: Público
HasRelations () HasRelations void ()
(line 152 ) IsExcludedValue (linha 152)
  • public Acesso: Público
IsExcludedValue ( IsExcludedValue vazio ( ) $ Value)
  • $ Value
(line 157 ) __get (linha 157)
  • public Acesso: Público
__get ( vazio __get ( ) $ Name)
  • $ Name
(line 166 ) __set (linha 166)
  • public Acesso: Público
__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