\SocialMediaPageExtension
Synopsis
class SocialMediaPageExtension
extends DataExtension
{
- // members
- protected boolean $justPosted = false;
- private static array $db = ;
- private static array $has_many = ;
- private static array $defaults = ;
- private static array $casting = ;
- // methods
- public static void SocialEmbedParser()
- public void AssociatedImage()
- public void SharedContent()
- public void SharedTitle()
- public void SharedLink()
- public void parseContent()
- public void getFieldsToPush()
- public void updateCMSFields()
- public void onAfterPublish()
- public void ImageWithFallback()
- public string ShareUrl()
- public string Meta()
Hierarchy
Extends
- DataExtension
Tasks
Line | Task |
---|---|
7+ | need reconcile removals in both directions |
7+ | remove PublicationFBUpdateID && PublicationTweetID as they aren't really needed any more - if testing for post just call $this->owner->PublicationTweets()->count() |
Members
private
- $casting
- $db
- $defaults
- $has_many
protected
- $justPosted
Methods
public
- AssociatedImage()
- ImageWithFallback()
- Meta() — Returns some meta data for the template
- SocialEmbedParser() — parses out short codes: [social_embed,service="twitter",url="https://twitter.com/nytimes/status/701590150434967553"] [social_embed,service="facebook",url="https://www.facebook.com/telesurenglish/photos/a.492297374247003.1073741828.479681268841947/791129364363801/"] [social_embed,service="instagram",url="https://www.instagram.com/p/BCEoPpwDw-t/"]
- getFieldsToPush()
- onAfterPublish()
- parseContent()
- updateCMSFields()