Your PHP skills tool showed me were I needed to improve and how to do it! "Ваш PHP навыков инструмент показал мне было мне нужно улучшить и как это сделать!"
Том

RocksRelation класса

Описание

Этот класс представляет собой отношения в базе данных. Когда это будет выполнено оно будет возвращать массив объектов RocksDBO или только один. Это обычно работают на жидком для внутреннего использования.

  • 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 = 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 (строка $ foriegnKey, строка $ otherTable, строка $ otherTableForiegnKey, [строка $ RelationName = NULL], [строка $ RelationType = NULL])
Alternative ( пустота альтернативные ( ) $ Отношение)
GetOrderBy () пустота GetOrderBy ()
HasRelations () пустота HasRelations ()
IsExcludedValue ( пустота IsExcludedValue ( ) $ Значение)
__get ( пустота __get ( ) $ Имя)
__set ( аннулировать __set ( , $ VAR, ) $ 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 = 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 Строка $ 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 (строка $ foriegnKey, строка $ otherTable, строка $ 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 Строка $ 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 ( Набор недействительными __ ( , $ VAR, ) $ VarValue)
  • $ Уаг
  • $ VarValue

Нет комментариев были предоставлены.
безопасность изображение

Автор: Доминик Скиннера
Последнее обновление: 2011-10-25 16:00:38