Пример #1
0
 public function getIndexableFromNode($content, $include_attachments = true)
 {
     $indexableContent = parent::getIndexableFromNode($content, $include_attachments);
     if (empty($content['url_title'])) {
         $indexableContent['url_title'] = $content['url_title'];
     }
     return $indexableContent;
 }
Пример #2
0
 public function getIndexableFromNode($content, $include_attachments = true)
 {
     $indexableContent = parent::getIndexableFromNode($content, $include_attachments);
     $option_titles = array();
     //options may be serialized
     if (is_string($content['options'])) {
         $content['options'] = unserialize($content['options']);
     }
     foreach ((array) $content['options'] as $option) {
         array_push($option_titles, $option['title']);
     }
     $indexableContent['options'] = implode(',', $option_titles);
     return $indexableContent;
 }
Пример #3
0
 public function getIndexableFromNode($content, $include_attachments = true)
 {
     $indexableContent = parent::getIndexableFromNode($content, $include_attachments);
     if (empty($content['note'])) {
         $indexableContent['note'] = $content['note'];
     }
     if (empty($content['actionreason'])) {
         $indexableContent['actionreason'] = $content['actionreason'];
     }
     if (empty($content['customreason'])) {
         $indexableContent['customreason'] = $content['customreason'];
     }
     return $indexableContent;
 }