public function FeedsFacebookParser::getMappingSources in Feeds: Facebook parser 6
Same name and namespace in other branches
- 7 FeedsFacebookParser.inc \FeedsFacebookParser::getMappingSources()
Declare the possible mapping sources that this parser produces.
Return value
An array of mapping sources, or FALSE if the sources can be defined by typing a value in a text field.
Example:
array(
'title' => t('Title'),
'created' => t('Published date'),
'url' => t('Feed item URL'),
'guid' => t('Feed item GUID'),
);
Overrides FeedsParser::getMappingSources
File
- ./
FeedsFacebookParser.inc, line 56
Class
- FeedsFacebookParser
- Class definition for Facebook Parser.
Code
public function getMappingSources() {
return parent::getMappingSources() + array(
'post_id' => array(
'name' => t('Post id'),
'description' => t('Facebook post id'),
),
'from_name' => array(
'name' => t('From: name'),
'description' => t(''),
),
'from_category' => array(
'name' => t('From: category'),
'description' => t(''),
),
'from_id' => array(
'name' => t('From: id'),
'description' => t(''),
),
'to_name' => array(
'name' => t('To: name'),
'description' => t(''),
),
'to_category' => array(
'name' => t('To: category'),
'description' => t(''),
),
'to_id' => array(
'name' => t('To: id'),
'description' => t(''),
),
'message' => array(
'name' => t('Message'),
'description' => t(''),
),
'picture' => array(
'name' => t('Picture'),
'description' => t('Picture or screenshot of the post'),
),
'name' => array(
'name' => t('Name'),
'description' => t('Post name, could be a file name'),
),
'link' => array(
'name' => t('Link'),
'description' => t(''),
),
'source' => array(
'name' => t('Source'),
'description' => t('Music file source'),
),
'description' => array(
'name' => t('Description'),
'description' => t(''),
),
'icon' => array(
'name' => t('Icon'),
'description' => t(''),
),
'type' => array(
'name' => t('Type'),
'description' => t('Type of post'),
),
'likes' => array(
'name' => t('Likes'),
'description' => t('Likes json encoded'),
),
'likes_count' => array(
'name' => t('Likes count'),
'description' => t('Number of likes'),
),
'comments' => array(
'name' => t('Comments'),
'description' => t('Comments json encoded'),
),
'comments_count' => array(
'name' => t('Comments count'),
'description' => t('Number of comments'),
),
'created_time' => array(
'name' => t('Created time'),
'description' => t('Date/time'),
),
'updated_time' => array(
'name' => t('Updated time'),
'description' => t('Date/time'),
),
);
}