PHP Class Rubenwouters\CrmLauncher\Updates\UpdateAllCases

Mostra file Open project: rubenwouters/crm-launcher Class Usage Examples

Protected Properties

Property Type Description
$answer Rubenwouters\CrmLauncher\Models\Answer
$case Rubenwouters\CrmLauncher\Models\CaseOverview
$contact Rubenwouters\CrmLauncher\Models\Contact
$facebookContent Rubenwouters\CrmLauncher\ApiCalls\FetchFacebookContent
$innerComment Rubenwouters\CrmLauncher\Models\InnerComment
$media Rubenwouters≈\CrmLauncher\Models\Media
$message Rubenwouters\CrmLauncher\Models\Message
$publishment Rubenwouters\CrmLauncher\Models\Publishment
$reaction Rubenwouters\CrmLauncher\Models\Reaction
$twitterContent Rubenwouters\CrmLauncher\ApiCalls\FetchTwitterContent

Public Methods

Method Description
__construct ( Contact $contact, CaseOverview $case, Reaction $reaction, Publishment $publishment, Message $message, Media $media, Answer $answer, InnerComment $innerComment, FetchTwitterContent $twitterContent, FetchFacebookContent $facebookContent )
collectDirectMessages ( ) : void Gets all direct (private) messages on Twitter
collectMentions ( ) : void Gets all public mentions on Twitter
collectPosts ( ) : view Gets all posts on Facebook
collectPrivateConversations ( ) : void Handles all private conversations from Facebook

Private Methods

Method Description
collectPrivateMessages ( object $conversation, datetime $newest ) : void Get the messages out of a conversation
fetchComments ( Datetime $newest ) : return Fetch comments on post form Facebook
fetchInnerComments ( datetime $newest ) : void Fetch inner comments of facebook
fetchSpecificMention ( $mention ) : void Fetch mentions from Twitter
getComments ( )
getPosts ( ) : [type] Return all facebook posts (merges messages & publishments)
updateCase ( integer $caseId, string $type, integer $messageId ) : void Update case with newest Facebook or Tweet id

Method Details

__construct() public method

public __construct ( Contact $contact, CaseOverview $case, Reaction $reaction, Publishment $publishment, Message $message, Media $media, Answer $answer, InnerComment $innerComment, FetchTwitterContent $twitterContent, FetchFacebookContent $facebookContent )
$contact Rubenwouters\CrmLauncher\Models\Contact
$case Rubenwouters\CrmLauncher\Models\CaseOverview
$reaction Rubenwouters\CrmLauncher\Models\Reaction
$publishment Rubenwouters\CrmLauncher\Models\Publishment
$message Rubenwouters\CrmLauncher\Models\Message
$media Rubenwouters\CrmLauncher\Models\Media
$answer Rubenwouters\CrmLauncher\Models\Answer
$innerComment Rubenwouters\CrmLauncher\Models\InnerComment
$twitterContent Rubenwouters\CrmLauncher\ApiCalls\FetchTwitterContent
$facebookContent Rubenwouters\CrmLauncher\ApiCalls\FetchFacebookContent

collectDirectMessages() public method

Gets all direct (private) messages on Twitter
public collectDirectMessages ( ) : void
return void

collectMentions() public method

Gets all public mentions on Twitter
public collectMentions ( ) : void
return void

collectPosts() public method

Gets all posts on Facebook
public collectPosts ( ) : view
return view

collectPrivateConversations() public method

Handles all private conversations from Facebook
public collectPrivateConversations ( ) : void
return void

Property Details

$answer protected_oe property

protected Answer,Rubenwouters\CrmLauncher\Models $answer
return Rubenwouters\CrmLauncher\Models\Answer

$case protected_oe property

protected CaseOverview,Rubenwouters\CrmLauncher\Models $case
return Rubenwouters\CrmLauncher\Models\CaseOverview

$contact protected_oe property

protected Contact,Rubenwouters\CrmLauncher\Models $contact
return Rubenwouters\CrmLauncher\Models\Contact

$facebookContent protected_oe property

protected FetchFacebookContent,Rubenwouters\CrmLauncher\ApiCalls $facebookContent
return Rubenwouters\CrmLauncher\ApiCalls\FetchFacebookContent

$innerComment protected_oe property

protected InnerComment,Rubenwouters\CrmLauncher\Models $innerComment
return Rubenwouters\CrmLauncher\Models\InnerComment

$media protected_oe property

protected Rubenwouters≈\CrmLauncher\Models\Media $media
return Rubenwouters≈\CrmLauncher\Models\Media

$message protected_oe property

protected Message,Rubenwouters\CrmLauncher\Models $message
return Rubenwouters\CrmLauncher\Models\Message

$publishment protected_oe property

protected Publishment,Rubenwouters\CrmLauncher\Models $publishment
return Rubenwouters\CrmLauncher\Models\Publishment

$reaction protected_oe property

protected Reaction,Rubenwouters\CrmLauncher\Models $reaction
return Rubenwouters\CrmLauncher\Models\Reaction

$twitterContent protected_oe property

protected FetchTwitterContent,Rubenwouters\CrmLauncher\ApiCalls $twitterContent
return Rubenwouters\CrmLauncher\ApiCalls\FetchTwitterContent