منشئ يمكن أن يتم تكوين كائن علاقة.
__construct ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) RocksRelation __ التصور (سلسلة $ foriegnKey، سلسلة $ otherTable، سلسلة $ otherTableForiegnKey، [سلسلة relationName $ = فارغة]، [سلسلة relationType $ = فارغة])
- $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 الخيط $ relationType: نوع من العلاقة إذا كان من علاقة واحد الى واحد او لا
AddExcludedValue ( باطل AddExcludedValue ( ) $ قيمة)
أوامر العناصر التي يتم إرجاعها في العلاقة
AddOrderBy ( string $fieldName , [ string $orderDirection = null ]) باطل AddOrderBy (سلسلة $ fieldName، [سلسلة orderDirection $ = فارغة])
- $fieldName : the field name to be ordered سلسلة $ fieldName: اسم الحقل إلى أن يؤمر
- $orderDirection : the direction the field should be ordered. سلسلة $ orderDirection: يجب الاتجاه أن يؤمر هذا المجال. وهذا يمكن أن تأخذ إما RocksDesc القيم أو RocksAsc.
ويضيف كائن يتعلق الكائن العلاقة القائمة
AddRelation ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) AddRelation باطلة (سلسلة $ foriegnKey، سلسلة $ otherTable، سلسلة $ otherTableForiegnKey، [سلسلة relationName $ = فارغة]، [سلسلة relationType $ = فارغة])
- $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 الخيط $ relationType: نوع من العلاقة إذا كان من علاقة واحد الى واحد او لا
Alternative ( البديل باطل ( ) $ العلاقة)
GetNextAlternativeRelation () GetNextAlternativeRelation باطل ()
إرجاع SQL التي تمثل يأمر، وعادة ما يستخدم هذا داخليا.
GetOrderBy () GetOrderBy باطل ()
هذا هو عدد العلاقات هذه العلاقة
HasRelations () HasRelations باطل ()
IsExcludedValue ( باطل IsExcludedValue ( ) $ قيمة)
__get ( __ الحصول على باطل ( ) $ اسم)
__set ( باطل __ مجموعة ( , $ فار، ) $ varValue)