I had no idea at all about PHP or programming until I started reading your website! "لم يكن لدي أي فكرة على الإطلاق عن البرمجة PHP أو حتى بدأت القراءة موقع الويب الخاص بك!"
سكوت

فئة RocksRelation

وصف

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

  • string $foriegnKey: the name of the field in the dbo table that is the foriegn key الملكية : سلسلة $ foriegnKey : اسم الحقل في الجدول 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 : اسم المفتاح الخارجي في الجدول الآخر
  • 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 ) __construct منشئ (السطر 41)

منشئ تمكن من تكوين علاقة بالآخر.

  • public وصول : الجمهور
__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 : نوع من العلاقة إذا كانت علاقة واحد إلى واحد أو لا
(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 : المفتاح الخارجي في الكائن الحالية التي ينبغي أن تنشأ هذه العلاقة على
  • $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 ( الفراغ __get ( ) $ اسم)
  • اسم $
(line 166 ) __set (السطر 166)
  • public وصول : الجمهور
__set ( __set باطلة ( , $ فار ، ) varValue $)
  • فار $
  • $ varValue

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

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