منشئ تمكن من تكوين علاقة بالآخر.
__construct ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) RocksRelation __construct (سلسلة foriegnKey $ ، $ otherTable السلسلة ، سلسلة $ otherTableForiegnKey ، [سلسلة relationName $ = فارغة] ، [سلسلة relationType $ = فارغة])
- $foriegnKey : the foriegn key in the current object that this relationship should be created on سلسلة $ foriegnKey : المفتاح الخارجي في الكائن الحالية التي ينبغي أن تنشأ هذه العلاقة على
- $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 : المفتاح الخارجي في الكائن الحالية التي ينبغي أن تنشأ هذه العلاقة على
- $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 ( الفراغ __get ( ) $ اسم)
__set ( __set باطلة ( , $ فار ، ) varValue $)