Abstract Class Socialveo\Frontend\widgets\NotificationsWidget

InheritanceSocialveo\Frontend\widgets\NotificationsWidget » Socialveo\Frontend\widgets\WidgetBase » Phalcon\Ext\Widgets\WidgetBase
Uses TraitsSocialveo\Core\Translatable
SubclassesSocialveo\Frontend\widgets\notificationsConnection\NotificationsConnection, Socialveo\Frontend\widgets\notificationsGeneric\NotificationsGeneric, Socialveo\Frontend\widgets\notificationsMessages\NotificationsMessages

Class NotificationsWidget

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
createCriteria() Create criteria for search notifications Socialveo\Frontend\widgets\NotificationsWidget
criteriaInNotificationTypes() Set notification types for criteria Socialveo\Frontend\widgets\NotificationsWidget
criteriaInTargetTypes() Set notification target types for criteria Socialveo\Frontend\widgets\NotificationsWidget
getUrl() Returns url Socialveo\Frontend\widgets\NotificationsWidget

Property Details

$_url protected property
protected Socialveo\Core\Url $_url null
$notification_types protected property
protected array $notification_types = []
$target_types protected property
protected array $target_types = []

Method Details

createCriteria() protected method

Create criteria for search notifications

protected Phalcon\Mvc\Model\Criteria createCriteria ( $user )
$user Socialveo\Core\models\User
criteriaInNotificationTypes() protected method

Set notification types for criteria

protected void criteriaInNotificationTypes ( &$criteria, $notification_types null )
$criteria Phalcon\Mvc\Model\Criteria
$notification_types array

[optional]

criteriaInTargetTypes() protected method

Set notification target types for criteria

protected void criteriaInTargetTypes ( &$criteria, $target_types null )
$criteria Phalcon\Mvc\Model\Criteria
$target_types array

[optional]

getUrl() protected method

Returns url

protected Socialveo\Core\Url getUrl ( )
render() public method

Renders the widget

public string render ( $params null )
$params array|null
renderItem() public method

Render one notification

public string renderItem ( $notification )
$notification Socialveo\Core\models\Notification