本文整理汇总了PHP中OwnedSecurableItem类的典型用法代码示例。如果您正苦于以下问题:PHP OwnedSecurableItem类的具体用法?PHP OwnedSecurableItem怎么用?PHP OwnedSecurableItem使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了OwnedSecurableItem类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: afterSave
protected function afterSave()
{
if ($this->isNewModel && !$this->isCompleted) {
Yii::app()->jobQueue->add('Export', 5);
}
parent::afterSave();
}
示例2: getDefaultMetadata
/**
* @return array
*/
public static function getDefaultMetadata()
{
$metadata = parent::getDefaultMetadata();
$metadata[__CLASS__] = array('members' => array('name', 'description', 'location', 'moduleClassName', 'startAttributeName', 'endAttributeName', 'serializedData', 'timeZone', 'color'), 'relations' => array('sharedSubscribers' => array(static::HAS_MANY, 'SavedCalendarSubscription')), 'rules' => array(array('name', 'required'), array('name', 'type', 'type' => 'string'), array('name', 'length', 'min' => 1, 'max' => 64), array('description', 'type', 'type' => 'string'), array('location', 'type', 'type' => 'string'), array('moduleClassName', 'type', 'type' => 'string'), array('moduleClassName', 'length', 'max' => 64), array('startAttributeName', 'required'), array('startAttributeName', 'type', 'type' => 'string'), array('endAttributeName', 'type', 'type' => 'string'), array('serializedData', 'type', 'type' => 'string'), array('timeZone', 'type', 'type' => 'string'), array('timeZone', 'length', 'max' => 64), array('timeZone', 'UserDefaultTimeZoneDefaultValueValidator'), array('timeZone', 'ValidateTimeZone'), array('serializedData', 'type', 'type' => 'string'), array('color', 'type', 'type' => 'string'), array('color', 'length', 'min' => 1, 'max' => 64)), 'elements' => array('moduleClassName' => 'CalendarModuleClassNameDropDown'), 'customFields' => array(), 'defaultSortAttribute' => 'name', 'noAudit' => array(), 'globalSearchAttributeNames' => array('name'));
return $metadata;
}
示例3: translatedAttributeLabels
protected static function translatedAttributeLabels($language)
{
return array_merge(parent::translatedAttributeLabels($language), array('comments' => Zurmo::t('CommentsModule', 'Comments', array(), null, $language), 'description' => Zurmo::t('ZurmoModule', 'Description', array(), null, $language), 'files' => Zurmo::t('ZurmoModule', 'Files', array(), null, $language), 'latestDateTime' => Zurmo::t('ZurmoModule', 'Latest Date Time', array(), null, $language), 'note' => Zurmo::t('NotesModule', 'Note', array(), null, $language), 'toUser' => Zurmo::t('SocialItemsModule', 'To User', array(), null, $language)));
}
示例4: getDefaultMetadata
public static function getDefaultMetadata()
{
$metadata = parent::getDefaultMetadata();
$metadata[__CLASS__] = array('members' => array('name'), 'relations' => array('dropDownX' => array(RedBeanModel::HAS_ONE, 'OwnedCustomField', RedBeanModel::OWNED, RedBeanModel::LINK_TYPE_SPECIFIC, 'dropDownX'), 'workflowModelTestItems' => array(RedBeanModel::HAS_MANY, 'WorkflowModelTestItem')), 'rules' => array(array('name', 'type', 'type' => 'string'), array('name', 'length', 'max' => 32)), 'customFields' => array('dropDownX' => 'WorkflowTestDropDown'), 'elements' => array('dropDownX' => 'DropDown'));
return $metadata;
}
示例5: getDefaultMetadata
public static function getDefaultMetadata()
{
$metadata = parent::getDefaultMetadata();
$metadata[__CLASS__] = array('members' => array('name'), 'rules' => array(array('name', 'type', 'type' => 'string'), array('name', 'length', 'max' => 32)));
return $metadata;
}
示例6: getDefaultMetadata
public static function getDefaultMetadata()
{
$metadata = parent::getDefaultMetadata();
$metadata[__CLASS__] = array('members' => array('layoutId', 'layoutType', 'isDefault', 'name'), 'rules' => array(array('isDefault', 'boolean'), array('layoutId', 'required'), array('layoutId', 'type', 'type' => 'integer'), array('layoutType', 'required'), array('layoutType', 'type', 'type' => 'string'), array('layoutType', 'length', 'max' => 10), array('name', 'required'), array('name', 'type', 'type' => 'string'), array('name', 'length', 'min' => 3, 'max' => 64)), 'defaultSortAttribute' => 'name');
return $metadata;
}
示例7: getDefaultMetadata
public static function getDefaultMetadata()
{
$metadata = parent::getDefaultMetadata();
$metadata[__CLASS__] = array('members' => array('latestDateTime'), 'relations' => array('activityItems' => array(static::MANY_MANY, 'Item')), 'rules' => array(array('latestDateTime', 'required'), array('latestDateTime', 'readOnly'), array('latestDateTime', 'type', 'type' => 'datetime')), 'elements' => array('activityItems' => 'ActivityItem', 'latestDateTime' => 'DateTime'), 'activityItemsModelClassNames' => array('Account', 'Contact', 'Opportunity'));
return $metadata;
}
示例8: getDefaultMetadata
public static function getDefaultMetadata()
{
$metadata = parent::getDefaultMetadata();
$metadata[__CLASS__] = array('members' => array('name', 'phone'), 'relations' => array('hasMany2' => array(static::HAS_MANY, 'ReportModelTestItem', static::NOT_OWNED, static::LINK_TYPE_SPECIFIC, 'hasOne'), 'hasMany3' => array(static::MANY_MANY, 'ReportModelTestItem3')), 'rules' => array(array('name', 'type', 'type' => 'string'), array('name', 'length', 'max' => 32), array('phone', 'type', 'type' => 'string'), array('phone', 'length', 'min' => 1, 'max' => 14)));
return $metadata;
}
示例9: translatedAttributeLabels
protected static function translatedAttributeLabels($language)
{
return array_merge(parent::translatedAttributeLabels($language), array('account' => Zurmo::t('EmailMessagesModule', 'Email Account', array(), null, $language), 'content' => Zurmo::t('EmailMessagesModule', 'Content', array(), null, $language), 'error' => Zurmo::t('Core', 'Error', array(), null, $language), 'folder' => Zurmo::t('ZurmoModule', 'Folder', array(), null, $language), 'files' => Zurmo::t('ZurmoModule', 'Files', array(), null, $language), 'recipients' => Zurmo::t('EmailMessagesModule', 'Recipients', array(), null, $language), 'sender' => Zurmo::t('EmailMessagesModule', 'Sender', array(), null, $language), 'sendAttempts' => Zurmo::t('EmailMessagesModule', 'Send Attempts', array(), null, $language), 'sentDateTime' => Zurmo::t('EmailMessagesModule', 'Sent Date Time', array(), null, $language), 'subject' => Zurmo::t('EmailMessagesModule', 'Subject', array(), null, $language), 'type' => Zurmo::t('Core', 'Type', array(), null, $language)));
}
示例10: getDefaultMetadata
public static function getDefaultMetadata()
{
$metadata = parent::getDefaultMetadata();
$metadata[__CLASS__] = array('members' => array('name'), 'relations' => array('workflowModelTestItem9' => array(static::HAS_MANY_BELONGS_TO, 'WorkflowModelTestItem9'), 'workflowModelTestItem9s' => array(static::HAS_MANY, 'WorkflowModelTestItem9'), 'dropDown' => array(static::HAS_ONE, 'OwnedCustomField', static::OWNED, static::LINK_TYPE_SPECIFIC, 'dropDown'), 'hasMany' => array(static::HAS_MANY, 'WorkflowModelTestItem', static::NOT_OWNED, static::LINK_TYPE_SPECIFIC, 'hasMany'), 'manyMany' => array(static::MANY_MANY, 'WorkflowModelTestItem', static::NOT_OWNED, static::LINK_TYPE_SPECIFIC, 'manyMany'), 'hasOne' => array(static::HAS_ONE, 'WorkflowModelTestItem', static::NOT_OWNED, static::LINK_TYPE_SPECIFIC, 'hasOne'), 'hasOne2' => array(static::HAS_ONE, 'WorkflowModelTestItem5', static::NOT_OWNED, static::LINK_TYPE_SPECIFIC, 'hasOne2'), 'hasOne3' => array(static::HAS_ONE, 'WorkflowModelTestItem', static::NOT_OWNED, static::LINK_TYPE_SPECIFIC, 'hasOne3'), 'hasOne4' => array(static::HAS_ONE, 'WorkflowModelTestItem8', static::NOT_OWNED, static::LINK_TYPE_SPECIFIC, 'hasOne4')), 'rules' => array(array('name', 'type', 'type' => 'string'), array('name', 'length', 'max' => 32)), 'customFields' => array('dropDown' => 'WorkflowTestDropDown'), 'elements' => array('dropDown' => 'DropDown'));
return $metadata;
}
示例11: beforeValidate
/**
* Sets the scenario for currencyvalue elements to positiveValue for the validation of the price
* using the rule in CurrencyValue
* @return bool
*/
protected function beforeValidate()
{
$this->sellPrice->setScenario('positiveValue');
return parent::beforeValidate();
}
示例12: translatedAttributeLabels
protected static function translatedAttributeLabels($language)
{
return array_merge(parent::translatedAttributeLabels($language), array('name' => Zurmo::t('ZurmoModule', 'Name', null, null, $language), 'status' => Zurmo::t('CampaignsModule', 'Status', null, null, $language), 'sendOnDateTime' => Zurmo::t('CampaignsModule', 'Send On', null, null, $language), 'supportsRichText' => Zurmo::t('CampaignsModule', 'Supports HTML', null, null, $language), 'fromName' => Zurmo::t('CampaignsModule', 'From Name', null, null, $language), 'fromAddress' => Zurmo::t('CampaignsModule', 'From Address', null, null, $language), 'subject' => Zurmo::t('EmailMessagesModule', 'Subject', null, null, $language), 'htmlContent' => Zurmo::t('EmailMessagesModule', 'Html Content', null, null, $language), 'textContent' => Zurmo::t('EmailMessagesModule', 'Text Content', null, null, $language)));
}
示例13: afterDelete
protected function afterDelete()
{
foreach ($this->campaignItems as $item) {
$item->delete();
}
return parent::afterDelete();
}
示例14: getDefaultMetadata
/**
* @return array
*/
public static function getDefaultMetadata()
{
$metadata = parent::getDefaultMetadata();
$metadata[__CLASS__] = array('members' => array('name', 'redirectUrl', 'submitButtonLabel', 'serializedData', 'excludeStyles', 'enableCaptcha', 'language', 'defaultPermissionSetting', 'defaultPermissionGroupSetting'), 'relations' => array('defaultState' => array(static::HAS_ONE, 'ContactState', static::NOT_OWNED, static::LINK_TYPE_SPECIFIC, 'defaultState'), 'entries' => array(static::HAS_MANY, 'ContactWebFormEntry', static::OWNED, static::LINK_TYPE_SPECIFIC, 'entries'), 'defaultOwner' => array(static::HAS_ONE, 'User', static::NOT_OWNED, static::LINK_TYPE_SPECIFIC, 'defaultOwner')), 'rules' => array(array('name', 'required'), array('name', 'type', 'type' => 'string'), array('redirectUrl', 'required'), array('redirectUrl', 'url', 'defaultScheme' => 'http'), array('submitButtonLabel', 'required'), array('submitButtonLabel', 'type', 'type' => 'string'), array('submitButtonLabel', 'default', 'value' => 'Submit'), array('defaultState', 'required'), array('serializedData', 'required'), array('serializedData', 'type', 'type' => 'string'), array('defaultOwner', 'required'), array('excludeStyles', 'type', 'type' => 'boolean'), array('excludeStyles', 'default', 'value' => 0), array('enableCaptcha', 'type', 'type' => 'boolean'), array('enableCaptcha', 'default', 'value' => 0), array('language', 'type', 'type' => 'string'), array('language', 'length', 'max' => 10), array('defaultPermissionSetting', 'numerical', 'min' => UserConfigurationForm::DEFAULT_PERMISSIONS_SETTING_OWNER, 'max' => UserConfigurationForm::DEFAULT_PERMISSIONS_SETTING_EVERYONE), array('defaultPermissionGroupSetting', 'numerical', 'min' => 1)), 'elements' => array('name' => 'Text', 'redirectUrl' => 'Text', 'submitButtonLabel' => 'Text', 'defaultState' => 'ContactState', 'defaultOwner' => 'User'), 'defaultSortAttribute' => 'name', 'noAudit' => array('serializedData', 'entries'));
return $metadata;
}
示例15: translatedAttributeLabels
protected static function translatedAttributeLabels($language)
{
return array_merge(parent::translatedAttributeLabels($language), array('description' => Zurmo::t('ZurmoModule', 'Description', array(), null, $language), 'name' => Zurmo::t('Core', 'Name', array(), null, $language), 'type' => Zurmo::t('Core', 'Type', array(), null, $language)));
}