Class lispa\amos\partnershipprofiles\utility\PartnershipProfilesUtility
Inheritance | lispa\amos\partnershipprofiles\utility\PartnershipProfilesUtility » yii\base\Object |
---|---|
Implements | yii\base\Configurable |
Class PartnershipProfilesUtility
Public Properties
Property | Type | Description | Defined By |
---|---|---|---|
$dbDateFormat | string | lispa\amos\partnershipprofiles\utility\PartnershipProfilesUtility |
Public Methods
Property Details
Method Details
public static boolean addCommunityParticipants ( $communityId, $selectedUserIds ) | ||
$communityId | integer | |
$selectedUserIds | integer[] |
Calculate expiry date and return the DateTime object.
public static boolean|DateTime|null calcExpiryDate ( $model ) | ||
$model | lispa\amos\partnershipprofiles\models\PartnershipProfiles | |
throws | lispa\amos\partnershipprofiles\exceptions\PartnershipProfilesException |
---|
Calculate expiry date and return the formatted date string.
public static string calcExpiryDateStr ( $model, $formatted = false ) | ||
$model | lispa\amos\partnershipprofiles\models\PartnershipProfiles | |
$formatted | boolean | |
throws | lispa\amos\partnershipprofiles\exceptions\PartnershipProfilesException | |
---|---|---|
throws | yii\base\InvalidConfigException |
Calculate expiry date without object, only with params, and return an array with the formatted date.
public static array calcExpiryDateWithParams ( $partnershipProfileDate, $expirationInMonths ) | ||
$partnershipProfileDate | string | |
$expirationInMonths | string |
public static boolean canView ( $model ) | ||
$model | lispa\amos\partnershipprofiles\models\PartnershipProfiles |
public static boolean createProjectGroupCommunity ( $model, $selectedUserIds ) | ||
$model | lispa\amos\partnershipprofiles\models\PartnershipProfiles | |
$selectedUserIds | integer[] |
Duplicate the partnership profile tags for the related community
public static boolean duplicatePartnershipProfilesTagForCommunity ( $model ) | ||
$model | lispa\amos\partnershipprofiles\models\PartnershipProfiles |
This method get the last visited url for the expressions of interest actions.
public static string getActionsRedirectLink ( $default = '' ) | ||
$default | string |
Return an array with the values used in boolean fields.
public static array getBooleanFieldsValues ( ) |
This method find all logged user own interests partnership profiles.
The method returns an array of PartnershipProfiles objects or an array of ids.
public static lispa\amos\partnershipprofiles\models\PartnershipProfiles[] getOwnInterestPartnershipProfiles ( $onlyIds = false ) | ||
$onlyIds | boolean |
Get the external form link saved in session.
public static string getPartnershipProfilesLink ( ) |