PHP Class Rubenwouters\CrmLauncher\Controllers\PublishController

Inheritance: extends Illuminate\Routing\Controller, use trait Illuminate\Foundation\Validation\ValidatesRequests
Show file Open project: rubenwouters/crm-launcher

Protected Properties

Property Type Description
$facebookContent Rubenwouters\CrmLauncher\ApiCalls\FetchFacebookContent
$publishment Rubenwouters\CrmLauncher\Models\Publishment
$reaction Rubenwouters\CrmLauncher\Models\Reaction
$twitterContent Rubenwouters\CrmLauncher\ApiCalls\FetchTwitterContent

Public Methods

Method Description
__construct ( Reaction $reaction, Publishment $publishment, FetchTwitterContent $twitterContent, FetchFacebookContent $facebookContent )
delete ( integer $id ) : view Delete publishment
deleteReaction ( integer $id ) : view Delete reaction
detail ( integer $id ) : view Show detail of publishment
index ( ) : view Show start view of publisher
publish ( Illuminate\Http\Request $request ) : view Publish Tweet and/or Facebook post
replyPost ( Illuminate\Http\Request $request, integer $id ) : view Reply post (Facebook)
replyTweet ( Illuminate\Http\Request $request, integer $id ) : view Reply tweet (Twitter)

Private Methods

Method Description
insertInnerComment ( integer $id, Illuminate\Http\Request $request, integer $messageId, object $reply ) : void Insert inner comment in DB
insertPublishment ( string $type, array $publication, string $content ) Insert publishment in DB

Method Details

__construct() public method

public __construct ( Reaction $reaction, Publishment $publishment, FetchTwitterContent $twitterContent, FetchFacebookContent $facebookContent )
$reaction Rubenwouters\CrmLauncher\Models\Reaction
$publishment Rubenwouters\CrmLauncher\Models\Publishment
$twitterContent Rubenwouters\CrmLauncher\ApiCalls\FetchTwitterContent
$facebookContent Rubenwouters\CrmLauncher\ApiCalls\FetchFacebookContent

delete() public method

Delete publishment
public delete ( integer $id ) : view
$id integer
return view

deleteReaction() public method

Delete reaction
public deleteReaction ( integer $id ) : view
$id integer
return view

detail() public method

Show detail of publishment
public detail ( integer $id ) : view
$id integer
return view

index() public method

Show start view of publisher
public index ( ) : view
return view

publish() public method

Publish Tweet and/or Facebook post
public publish ( Illuminate\Http\Request $request ) : view
$request Illuminate\Http\Request
return view

replyPost() public method

Reply post (Facebook)
public replyPost ( Illuminate\Http\Request $request, integer $id ) : view
$request Illuminate\Http\Request
$id integer
return view

replyTweet() public method

Reply tweet (Twitter)
public replyTweet ( Illuminate\Http\Request $request, integer $id ) : view
$request Illuminate\Http\Request
$id integer
return view

Property Details

$facebookContent protected property

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

$publishment protected property

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

$reaction protected property

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

$twitterContent protected property

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