Changeset View
Changeset View
Standalone View
Standalone View
src/applications/feed/conduit/FeedQueryConduitAPIMethod.php
| Show First 20 Lines • Show All 122 Lines • ▼ Show 20 Lines | if ($stories) { | ||||
| break; | break; | ||||
| case 'text': | case 'text': | ||||
| $data = array( | $data = array( | ||||
| 'class' => $story_data->getStoryType(), | 'class' => $story_data->getStoryType(), | ||||
| 'epoch' => $story_data->getEpoch(), | 'epoch' => $story_data->getEpoch(), | ||||
| 'authorPHID' => $story_data->getAuthorPHID(), | 'authorPHID' => $story_data->getAuthorPHID(), | ||||
| 'chronologicalKey' => $story_data->getChronologicalKey(), | 'chronologicalKey' => $story_data->getChronologicalKey(), | ||||
| 'objectPHID' => $story->getPrimaryObjectPHID(), | 'objectPHID' => $story->getPrimaryObjectPHID(), | ||||
| 'text' => $story->renderText() | 'text' => $story->renderText(), | ||||
| ); | ); | ||||
| break; | break; | ||||
| default: | default: | ||||
| throw new ConduitException('ERR-UNKNOWN-TYPE'); | throw new ConduitException('ERR-UNKNOWN-TYPE'); | ||||
| } | } | ||||
| $results[$story_data->getPHID()] = $data; | $results[$story_data->getPHID()] = $data; | ||||
| } | } | ||||
| } | } | ||||
| return $results; | return $results; | ||||
| } | } | ||||
| } | } | ||||