Class lispa\amos\events\utility\EventsUtility

Inheritancelispa\amos\events\utility\EventsUtility

Class EventsUtility

Method Details

checkOneConfirmedManagerPresence() public static method

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
createCommunity() public static method

Create a community for the event.

public static boolean createCommunity ( $model, $managerStatus '' )
$model lispa\amos\events\models\Event
$managerStatus string
deleteCommunityLogo() public static method

public static void deleteCommunityLogo ( $model )
$model
deleteGoogleEvent() public static method

public static boolean deleteGoogleEvent ( $serviceGoogle, $calendarId, $eventId )
$serviceGoogle \Google_Service_Calendar
$calendarId string
$eventId string
return boolean
  • operation result
duplicateEventLogoForCommunity() public static method

public static boolean duplicateEventLogoForCommunity ( $model )
$model lispa\amos\events\models\Event
duplicateEventTagForCommunity() public static method

public static boolean duplicateEventTagForCommunity ( $model )
$model lispa\amos\events\models\Event
findEventManagers() public static method

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
getGoogleServiceCalendar() public static method

public static \Google_Service_Calendar|null getGoogleServiceCalendar ( $service null )
$service null|lispa\amos\socialauth\models\SocialAuthServices
getUserCalendarService() public static method

public static array|null|yii\db\ActiveRecord getUserCalendarService ( $userId null )
$userId null|integer
insertOrUpdateGoogleEvent() public static method

public static boolean insertOrUpdateGoogleEvent ( $serviceGoogle, $calendarId, $eventCalendar )
$serviceGoogle \Google_Service_Calendar
$calendarId string
$eventCalendar \Google_Service_Calendar_Event
return boolean
  • operation result
translateArrayValues() public static method

This method translate the array values.

public static array translateArrayValues ( $arrayValues )
$arrayValues array
updateCommunity() public static method

Update a community.

public static boolean updateCommunity ( $model )
$model lispa\amos\events\models\Event