Class lispa\amos\events\utility\EventsUtility
Inheritance | lispa\amos\events\utility\EventsUtility |
---|
Class EventsUtility
Public Methods
Method Details
Check if there is at least one confirmed event manager only if there is a community. If not it return true.
public static boolean checkOneConfirmedManagerPresence ( $event ) | ||
$event | lispa\amos\events\models\Event |
Create a community for the event.
public static boolean createCommunity ( $model, $managerStatus = '' ) | ||
$model | lispa\amos\events\models\Event | |
$managerStatus | string |
public static void deleteCommunityLogo ( $model ) | ||
$model |
public static boolean deleteGoogleEvent ( $serviceGoogle, $calendarId, $eventId ) | ||
$serviceGoogle | \Google_Service_Calendar | |
$calendarId | string | |
$eventId | string | |
return | boolean |
|
---|
public static boolean duplicateEventLogoForCommunity ( $model ) | ||
$model | lispa\amos\events\models\Event |
public static boolean duplicateEventTagForCommunity ( $model ) | ||
$model | lispa\amos\events\models\Event |
Check if there is at least one confirmed event manager only if there is a community. If not it return true.
public static \lispa\amos\events\utility\array[CommunityUserMm] findEventManagers ( $event, $status = '' ) | ||
$event | lispa\amos\events\models\Event | |
$status | string |
public static \Google_Service_Calendar|null getGoogleServiceCalendar ( $service = null ) | ||
$service | null|lispa\amos\socialauth\models\SocialAuthServices |
public static array|null|yii\db\ActiveRecord getUserCalendarService ( $userId = null ) | ||
$userId | null|integer |
public static boolean insertOrUpdateGoogleEvent ( $serviceGoogle, $calendarId, $eventCalendar ) | ||
$serviceGoogle | \Google_Service_Calendar | |
$calendarId | string | |
$eventCalendar | \Google_Service_Calendar_Event | |
return | boolean |
|
---|
This method translate the array values.
public static array translateArrayValues ( $arrayValues ) | ||
$arrayValues | array |
Update a community.
public static boolean updateCommunity ( $model ) | ||
$model | lispa\amos\events\models\Event |