public function hasPeerFieldName($fieldName)
 {
     if (strpos($fieldName, '.') === false) {
         $fieldName = strtoupper($fieldName);
         $fieldName = "cue_point.{$fieldName}";
     }
     $cuePointFields = CuePointPeer::getFieldNames(BasePeer::TYPE_COLNAME);
     return in_array($fieldName, $cuePointFields);
 }
示例#2
0
 /**
  * Exports the object as an array.
  *
  * You can specify the key type of the array by passing one of the class
  * type constants.
  *
  * @param      string $keyType (optional) One of the class type constants BasePeer::TYPE_PHPNAME, BasePeer::TYPE_STUDLYPHPNAME
  *                        BasePeer::TYPE_COLNAME, BasePeer::TYPE_FIELDNAME, BasePeer::TYPE_NUM. Defaults to BasePeer::TYPE_PHPNAME.
  * @param      boolean $includeLazyLoadColumns (optional) Whether to include lazy loaded columns.  Defaults to TRUE.
  * @return     an associative array containing the field names (as keys) and field values
  */
 public function toArray($keyType = BasePeer::TYPE_PHPNAME, $includeLazyLoadColumns = true)
 {
     $keys = CuePointPeer::getFieldNames($keyType);
     $result = array($keys[0] => $this->getIntId(), $keys[1] => $this->getId(), $keys[2] => $this->getParentId(), $keys[3] => $this->getEntryId(), $keys[4] => $this->getPartnerId(), $keys[5] => $this->getCreatedAt(), $keys[6] => $this->getUpdatedAt(), $keys[7] => $this->getName(), $keys[8] => $this->getSystemName(), $keys[9] => $this->getText(), $keys[10] => $this->getTags(), $keys[11] => $this->getStartTime(), $keys[12] => $this->getEndTime(), $keys[13] => $this->getStatus(), $keys[14] => $this->getType(), $keys[15] => $this->getSubType(), $keys[16] => $this->getKuserId(), $keys[17] => $this->getCustomData(), $keys[18] => $this->getPartnerData(), $keys[19] => $this->getPartnerSortValue(), $keys[20] => $this->getThumbOffset(), $keys[21] => $this->getDepth(), $keys[22] => $this->getChildrenCount(), $keys[23] => $this->getDirectChildrenCount());
     return $result;
 }