コード例 #1
0
 /**
  * Convert the given trend DAO to an array and prepend metadata.
  *
  * @param Tracker_TrendDao $trendDao trend DAO
  * @return array associative array representation of the trend DAO with metadata prepended
  */
 protected function _toArray($trendDao)
 {
     $trendArray = array('_id' => $trendDao->getKey(), '_type' => 'Tracker_Trend');
     return array_merge($trendArray, $trendDao->toArray());
 }