Your PHP skills tool showed me were I needed to improve and how to do it! "당신의 PHP 실력 도구는 나 개선하는 데 필요한 방법을 가르쳐 있었 보여주었다!"

RocksRelation 교실

설명

이 클래스는 데이터베이스의 관계를 나타냅니다. 이것이 실행될 때 그것은 어느 RocksDBO 개체의 배열을 반환하거나 하나도합니다. 이것은 usualy 내부적으로 사용됩니다.

  • string $foriegnKey: the name of the field in the dbo table that is the foriegn key 재산 : 문자열 $ foriegnKey : foriegn 열쇠 DBO 테이블의 필드의 이름
  • string $otherTable: the name of the other table that it relates to 재산 : 문자열 otherTable $ : 다른 테이블의 이름은 관련이 있다고
  • string $otherTableForiegnKey: the name of the foriegn key in the other table 재산 : 문자열 $ otherTableForiegnKey : 다른 테이블의 foriegn 키의 이름
  • string $relationName: the name of the relationship 재산 : 문자열 $ relationName : 관계의 이름
  • string $relationType: the type of relationship this can be null or RocksOneToOne 재산 : 문자열 $ relationType : 관계의 유형이 null이 아니면 RocksOneToOne 될 수 있습니다
  • array $relations: this is a array of RocksRelation which represent the relationships related to this relationship 재산 : 배열 $ 관계 :이이 관계에 관한 관계를 나타내는 RocksRelation의 배열입니다
  • array $orderBys: this is a array of RocksOrderBy which represent the ordering of this relationship 재산 : 배열 $ orderBys : 이것이 관계의 순서를 나타내는 RocksOrderBy의 배열입니다
  • Dominic Skinner 작성자 : 도미닉 스키너
  • 0.2.1 버전 : 0.2.1
  • 추상 :

) / RocksRelation.php (라인 19)에 위치

방법 요약
__construct ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) RocksRelation __construct (otherTable 문자열 $ foriegnKey, 문자열 $, 문자열 $ otherTableForiegnKey, [문자열 $ relationName = NULL], [문자열 $ relationType = NULL])
AddExcludedValue ( 무효 AddExcludedValue ( ) 값 $)
AddOrderBy ( string $fieldName , [ string $orderDirection = null ]) 무효 AddOrderBy (문자열 $ fieldName, [문자열 $ orderDirection = NULL])
AddRelation ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) 공극 AddRelation (otherTable 문자열 $ foriegnKey, 문자열 $, 문자열 $ otherTableForiegnKey, [문자열 $ relationName = NULL], [문자열 $ relationType = NULL은])
Alternative ( 공극 대체 ( ) 관계 $)
GetOrderBy () 무효 GetOrderBy ()
HasRelations () 공극 HasRelations ()
IsExcludedValue ( 무효 IsExcludedValue ( ) 값 $)
__get ( 무효 __get ( ) 이름 $)
__set ( 무효화 __set을 ( , 은 $ var, ) $ varValue)
방법
(line 41 ) 생성자 __ 건설 (라인 41)

생성자는 관계 개체를 구성할 수 있습니다.

  • public 접근 : 공개
__construct ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) RocksRelation __ 구조 (otherTable 문자열 $ foriegnKey, 문자열 $, 문자열 $ otherTableForiegnKey, [문자열 $ relationName = NULL], [문자열 $ relationType = NULL])
  • $foriegnKey : the foriegn key in the current object that this relationship should be created on 문자열 $ foriegnKey :이 관계에 생성되어야한다는 현재 개체의 foriegn 키
  • $otherTable : the other table this relationship is with 문자열 otherTable $ :이 관계는 함께 다른 테이블
  • $otherTableForiegnKey : the key in the other table that this relationship is with 문자열 $ otherTableForiegnKey :이 관계는 함께있는 다른 테이블의 키
  • $relationName : the name of the relationship 문자열 $ relationName : 관계의 이름
  • $relationType : the type of the relationship if it is a one to one relationship or not 그것이 1-1 관계인지 아닌지 관계의 유형 : $ relationType을 정리할
(line 146 ) AddExcludedValue (라인 146)
  • public 접근 : 공개
AddExcludedValue ( 무효 AddExcludedValue ( ) 값 $)
  • $ 값
(line 91 ) AddOrderBy (라인 91)

명령 관계에 반환되는 항목

  • public 접근 : 공개
AddOrderBy ( string $fieldName , [ string $orderDirection = null ]) 무효 AddOrderBy (문자열 $ fieldName, [문자열 $ orderDirection = NULL])
  • $fieldName : the field name to be ordered 문자열 $ fieldName : 주문되는 필드 이름
  • $orderDirection : the direction the field should be ordered. 문자열 $ orderDirection : 방향 필드는 주문해야한다. 이것은 하나의 값을 RocksDesc 또는 RocksAsc 소요될 수 있습니다.
(line 71 ) AddRelation (라인 71)

는 기존 관계 개체에 관계 개체를 추가합니다

  • public 접근 : 공개
AddRelation ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) 공극 AddRelation (otherTable 문자열 $ foriegnKey, 문자열 $, 문자열 $ otherTableForiegnKey, [문자열 $ relationName = NULL], [문자열 $ relationType = NULL은])
  • $foriegnKey : the foriegn key in the current object that this relationship should be created on 문자열 $ foriegnKey :이 관계에 생성되어야한다는 현재 개체의 foriegn 키
  • $otherTable : the other table this relationship is with 문자열 otherTable $ :이 관계는 함께 다른 테이블
  • $otherTableForiegnKey : the key in the other table that this relationship is with 문자열 $ otherTableForiegnKey :이 관계는 함께있는 다른 테이블의 키
  • $relationName : the name of the relationship 문자열 $ relationName : 관계의 이름
  • $relationType : the type of the relationship if it is a one to one relationship or not 그것이 1-1 관계인지 아닌지 관계의 유형 : $ relationType을 정리할
(line 122 ) 대체 (라인 122)
  • public 접근 : 공개
Alternative ( 공극 대체 ( ) 관계 $)
  • $ 관계
(line 133 ) GetNextAlternativeRelation (133)
  • public 접근 : 공개
GetNextAlternativeRelation () 공극 GetNextAlternativeRelation ()
(line 100 ) GetOrderBy (라인 100)

이것은 보통 내부적으로 사용되며, 주문을 대표하는 SQL을 반환합니다.

  • public 접근 : 공개
GetOrderBy () 무효 GetOrderBy ()
(line 80 ) HasRelations (라인 80)

이것은이 관계가 가진 관계의 번호입니다

  • public 접근 : 공개
HasRelations () 공극 HasRelations ()
(line 152 ) IsExcludedValue (라인 152)
  • public 접근 : 공개
IsExcludedValue ( 무효 IsExcludedValue ( ) 값 $)
  • $ 값
(line 157 ) __get (라인 157)
  • public 접근 : 공개
__get ( 공극 __ 구하기 ( ) 이름 $)
  • $ 이름
(line 166 ) __set (라인 166)
  • public 접근 : 공개
__set ( 공극 __ 세트 ( , 은 $ var, ) $ varValue)
  • $ VAR
  • $ varValue

댓글이 제공되지 않았습니다 없습니다.
보안 이미지

도미닉 스키너 글
최근 업데이트 : 2011년 10월 25일 16시 0분 38초를