Class lispa\amos\partnershipprofiles\utility\PartnershipProfilesUtility

Inheritancelispa\amos\partnershipprofiles\utility\PartnershipProfilesUtility » yii\base\Object
Implementsyii\base\Configurable

Class PartnershipProfilesUtility

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__call() Calls the named method which is not a class method. yii\base\Object
__construct() Constructor. yii\base\Object
__get() Returns the value of an object property. yii\base\Object
__isset() Checks if a property is set, i.e. defined and not null. yii\base\Object
__set() Sets value of an object property. yii\base\Object
__unset() Sets an object property to null. yii\base\Object
addCommunityParticipants() lispa\amos\partnershipprofiles\utility\PartnershipProfilesUtility
calcExpiryDate() Calculate expiry date and return the DateTime object. lispa\amos\partnershipprofiles\utility\PartnershipProfilesUtility
calcExpiryDateStr() Calculate expiry date and return the formatted date string. lispa\amos\partnershipprofiles\utility\PartnershipProfilesUtility
calcExpiryDateWithParams() Calculate expiry date without object, only with params, and return an array with the formatted date. lispa\amos\partnershipprofiles\utility\PartnershipProfilesUtility
canGetProperty() Returns a value indicating whether a property can be read. yii\base\Object
canSetProperty() Returns a value indicating whether a property can be set. yii\base\Object
canView() lispa\amos\partnershipprofiles\utility\PartnershipProfilesUtility
className() Returns the fully qualified name of this class. yii\base\Object
createProjectGroupCommunity() lispa\amos\partnershipprofiles\utility\PartnershipProfilesUtility
duplicatePartnershipProfilesTagForCommunity() Duplicate the partnership profile tags for the related community lispa\amos\partnershipprofiles\utility\PartnershipProfilesUtility
getActionsRedirectLink() This method get the last visited url for the expressions of interest actions. lispa\amos\partnershipprofiles\utility\PartnershipProfilesUtility
getBooleanFieldsValues() Return an array with the values used in boolean fields. lispa\amos\partnershipprofiles\utility\PartnershipProfilesUtility
getOwnInterestPartnershipProfiles() This method find all logged user own interests partnership profiles. lispa\amos\partnershipprofiles\utility\PartnershipProfilesUtility
getPartnershipProfilesLink() Get the external form link saved in session. lispa\amos\partnershipprofiles\utility\PartnershipProfilesUtility
hasMethod() Returns a value indicating whether a method is defined. yii\base\Object
hasProperty() Returns a value indicating whether a property is defined. yii\base\Object
init() Initializes the object. yii\base\Object

Property Details

$dbDateFormat public static property
public static string $dbDateFormat 'Y-m-d'

Method Details

addCommunityParticipants() public static method

public static boolean addCommunityParticipants ( $communityId, $selectedUserIds )
$communityId integer
$selectedUserIds integer[]
calcExpiryDate() public static method

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

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

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

public static boolean canView ( $model )
$model lispa\amos\partnershipprofiles\models\PartnershipProfiles
createProjectGroupCommunity() public static method

public static boolean createProjectGroupCommunity ( $model, $selectedUserIds )
$model lispa\amos\partnershipprofiles\models\PartnershipProfiles
$selectedUserIds integer[]
duplicatePartnershipProfilesTagForCommunity() public static method

Duplicate the partnership profile tags for the related community

public static boolean duplicatePartnershipProfilesTagForCommunity ( $model )
$model lispa\amos\partnershipprofiles\models\PartnershipProfiles
getActionsRedirectLink() public static method

This method get the last visited url for the expressions of interest actions.

public static string getActionsRedirectLink ( $default '' )
$default string
getBooleanFieldsValues() public static method

Return an array with the values used in boolean fields.

public static array getBooleanFieldsValues ( )
getOwnInterestPartnershipProfiles() public static method

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

Get the external form link saved in session.

public static string getPartnershipProfilesLink ( )