I regularly use your site to answer my PHP problems! "لقد استخدم بانتظام موقعك للرد على مشاكلي PHP!"
مات

RocksRelation الدرجة

وصف

هذا الصنف يمثل العلاقة في قاعدة البيانات. عندما يتم تنفيذ هذا فإنه سيعود إما صفيف من الكائنات RocksDBO أو مجرد واحدة واحدة. ويستخدم هذا usualy داخليا.

  • string $foriegnKey: the name of the field in the dbo table that is the foriegn key الملكية: سلسلة $ foriegnKey: اسم الحقل في الجدول DBO وهذا هو مفتاح foriegn
  • 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: نوع من هذه العلاقة يمكن أن تكون فارغة أو 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 (سلسلة $ foriegnKey، سلسلة $ otherTable، سلسلة $ otherTableForiegnKey، [سلسلة relationName $ = فارغة]، [سلسلة relationType $ = فارغة])
AddExcludedValue ( باطل AddExcludedValue ( ) $ قيمة)
AddOrderBy ( string $fieldName , [ string $orderDirection = null ]) باطل AddOrderBy (سلسلة $ fieldName، [سلسلة orderDirection $ = فارغة])
AddRelation ( string $foriegnKey , string $otherTable , string $otherTableForiegnKey , [ string $relationName = null ], [ string $relationType = null ]) باطل AddRelation (سلسلة $ foriegnKey، سلسلة $ otherTable، سلسلة $ otherTableForiegnKey، [سلسلة relationName $ = فارغة]، [سلسلة relationType $ = فارغة])
Alternative ( باطل البديل ( ) $ العلاقة)
GetOrderBy () باطل GetOrderBy ()
HasRelations () باطل HasRelations ()
IsExcludedValue ( باطل IsExcludedValue ( ) $ قيمة)
__get ( باطل __get ( ) $ اسم)
__set ( إفراغ __set ( , $ فار، ) $ varValue)
طرق
(line 41 ) __ المنشئ بناء (خط 41)

منشئ يمكن أن يتم تكوين كائن علاقة.

  • public وصول: الجمهور
__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: نوع من العلاقة إذا كان من علاقة واحد الى واحد او لا
(line 146 ) AddExcludedValue (خط 146)
  • public وصول: الجمهور
AddExcludedValue ( باطل AddExcludedValue ( ) $ قيمة)
  • $ قيمة
(line 91 ) AddOrderBy (السطر 91)

أوامر العناصر التي يتم إرجاعها في العلاقة

  • public وصول: الجمهور
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.
(line 71 ) AddRelation (السطر 71)

ويضيف كائن يتعلق الكائن العلاقة القائمة

  • public وصول: الجمهور
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: نوع من العلاقة إذا كان من علاقة واحد الى واحد او لا
(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 ( باطل __ مجموعة ( , $ فار، ) $ varValue)
  • $ فار
  • $ varValue

لا وقدمت تعليق.
أمن صورة

كتبه الدباغ دومينيك
آخر تحديث: 2011/10/25 16:00:38