PHP Class Rubenwouters\CrmLauncher\Models\CaseOverview

Inheritance: extends Illuminate\Database\Eloquent\Model
ファイルを表示 Open project: rubenwouters/crm-launcher Class Usage Examples

Protected Properties

Property Type Description
$table string table name

Public Methods

Method Description
answers ( )
contact ( )
createCase ( string $type, array $message, object $contact ) : object Inserts new case in DB
innerAnswers ( )
innerComment ( )
messages ( )
openCase ( object $case ) : void Changes status of case to "open"
scopeAllCases ( $query ) * |-------------------------------------------------------------------------- | Scopes |-------------------------------------------------------------------------- | | Scopes of CaseOverview model |
scopeClosedCases ( $query )
scopeNewCases ( $query )
scopeOpenCases ( $query )
scopePendingCases ( $query )
scopePrivateFbMessages ( $query, $contact )
scopeVisibleCases ( $query )
summaries ( )
users ( ) * |-------------------------------------------------------------------------- | Relationships |-------------------------------------------------------------------------- | | Relationships of CaseOvervie model |

Method Details

answers() public method

public answers ( )

contact() public method

public contact ( )

createCase() public method

Inserts new case in DB
public createCase ( string $type, array $message, object $contact ) : object
$type string
$message array
$contact object
return object

innerAnswers() public method

public innerAnswers ( )

innerComment() public method

public innerComment ( )

messages() public method

public messages ( )

openCase() public method

Changes status of case to "open"
public openCase ( object $case ) : void
$case object
return void

scopeAllCases() public method

* |-------------------------------------------------------------------------- | Scopes |-------------------------------------------------------------------------- | | Scopes of CaseOverview model |
public scopeAllCases ( $query )

scopeClosedCases() public method

public scopeClosedCases ( $query )

scopeNewCases() public method

public scopeNewCases ( $query )

scopeOpenCases() public method

public scopeOpenCases ( $query )

scopePendingCases() public method

public scopePendingCases ( $query )

scopePrivateFbMessages() public method

public scopePrivateFbMessages ( $query, $contact )

scopeVisibleCases() public method

public scopeVisibleCases ( $query )

summaries() public method

public summaries ( )

users() public method

* |-------------------------------------------------------------------------- | Relationships |-------------------------------------------------------------------------- | | Relationships of CaseOvervie model |
public users ( )

Property Details

$table protected_oe property

table name
protected string $table
return string