app/Helpersfuncs.php

JingYao-backend

Functions

renderErrorJson()

renderErrorJson(  $errno,   $msg = '',   $data = array()) 

Parameters

$errno
$msg
$data

renderSuccessJson()

renderSuccessJson(  $data = null,   $errno,   $msg = 'success') 

Parameters

$data
$errno
$msg

sendJson()

sendJson(  $array) 

Parameters

$array

makeNameFromPhone()

makeNameFromPhone(  $phone) 

Parameters

$phone

adminLog()

adminLog(\Illuminate\Database\Eloquent\Model  $model, \int  $type, \string  $message) 

Parameters

\Illuminate\Database\Eloquent\Model $model
\int $type
\string $message

adminLoginLog()

adminLoginLog(\Illuminate\Database\Eloquent\Model  $user, \int  $type, \string  $message) 

Parameters

\Illuminate\Database\Eloquent\Model $user
\int $type
\string $message

formatImageUrls()

formatImageUrls(\string  $images) 

Parameters

\string $images

caleRenderScore()

caleRenderScore(\float  $score) 

Parameters

\float $score

helpXcxRenderScore()

helpXcxRenderScore(\float  $score) 

Parameters

\float $score

checkArrayExistsInArray()

checkArrayExistsInArray(array  $allArray, array  $array, \string  $key) 

Parameters

array $allArray
array $array
\string $key

checkInLocation()

checkInLocation(\string  $latitude, \string  $longitude) 

Parameters

\string $latitude
\string $longitude