本文整理汇总了PHP中OwnedSecurableItem::getDefaultMetadata方法的典型用法代码示例。如果您正苦于以下问题:PHP OwnedSecurableItem::getDefaultMetadata方法的具体用法?PHP OwnedSecurableItem::getDefaultMetadata怎么用?PHP OwnedSecurableItem::getDefaultMetadata使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OwnedSecurableItem
的用法示例。
在下文中一共展示了OwnedSecurableItem::getDefaultMetadata方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getDefaultMetadata
public static function getDefaultMetadata()
{
$metadata = parent::getDefaultMetadata();
$metadata[__CLASS__] = array('members' => array('name'), 'relations' => array('model5' => array(static::HAS_MANY, 'ReportModelTestItem5'), 'model' => array(static::HAS_MANY, 'ReportModelTestItem', static::OWNED, static::LINK_TYPE_SPECIFIC, 'likeContactState')), 'rules' => array(array('name', 'type', 'type' => 'string'), array('name', 'length', 'max' => 32)));
return $metadata;
}
示例2: 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;
}
示例3: getDefaultMetadata
public static function getDefaultMetadata()
{
$metadata = parent::getDefaultMetadata();
$metadata[__CLASS__] = array('members' => array('description', 'latestDateTime'), 'relations' => array('comments' => array(static::HAS_MANY, 'Comment', static::OWNED, static::LINK_TYPE_POLYMORPHIC, 'relatedModel'), 'note' => array(static::HAS_ONE, 'Note'), 'files' => array(static::HAS_MANY, 'FileModel', static::OWNED, static::LINK_TYPE_POLYMORPHIC, 'relatedModel'), 'toUser' => array(static::HAS_ONE, 'User', static::NOT_OWNED, static::LINK_TYPE_SPECIFIC, 'toUser')), 'rules' => array(array('description', 'type', 'type' => 'string'), array('description', 'required', 'on' => 'createPost'), array('latestDateTime', 'required'), array('latestDateTime', 'readOnly'), array('latestDateTime', 'type', 'type' => 'datetime')), 'elements' => array('description' => 'TextArea', 'files' => 'Files', 'latestDateTime' => 'DateTime'));
return $metadata;
}
示例4: 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;
}
示例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('closeDate', 'description', 'name', 'probability'), 'relations' => array('account' => array(static::HAS_ONE, 'Account'), 'amount' => array(static::HAS_ONE, 'CurrencyValue', static::OWNED, static::LINK_TYPE_SPECIFIC, 'amount'), 'products' => array(static::HAS_MANY, 'Product'), 'contacts' => array(static::MANY_MANY, 'Contact'), 'stage' => array(static::HAS_ONE, 'OwnedCustomField', static::OWNED, static::LINK_TYPE_SPECIFIC, 'stage'), 'source' => array(static::HAS_ONE, 'OwnedCustomField', static::OWNED, static::LINK_TYPE_SPECIFIC, 'source'), 'projects' => array(static::MANY_MANY, 'Project')), 'derivedRelationsViaCastedUpModel' => array('meetings' => array(static::MANY_MANY, 'Meeting', 'activityItems'), 'notes' => array(static::MANY_MANY, 'Note', 'activityItems'), 'tasks' => array(static::MANY_MANY, 'Task', 'activityItems')), 'rules' => array(array('amount', 'required'), array('closeDate', 'required'), array('closeDate', 'type', 'type' => 'date'), array('description', 'type', 'type' => 'string'), array('name', 'required'), array('name', 'type', 'type' => 'string'), array('name', 'length', 'min' => 1, 'max' => 64), array('probability', 'type', 'type' => 'integer'), array('probability', 'numerical', 'min' => 0, 'max' => 100), array('probability', 'required'), array('probability', 'default', 'value' => 0), array('probability', 'probability'), array('stage', 'required')), 'elements' => array('amount' => 'CurrencyValue', 'account' => 'Account', 'closeDate' => 'Date', 'description' => 'TextArea'), 'customFields' => array('stage' => 'SalesStages', 'source' => 'LeadSources'), 'defaultSortAttribute' => 'name', 'rollupRelations' => array('contacts'), 'noAudit' => array('description'));
return $metadata;
}
示例7: getDefaultMetadata
public static function getDefaultMetadata()
{
$metadata = parent::getDefaultMetadata();
$metadata[__CLASS__] = array('members' => array('name', 'somethingOn3'), 'rules' => array(array('name', 'type', 'type' => 'string'), array('name', 'length', 'max' => 32), array('somethingOn3', 'type', 'type' => 'string'), array('somethingOn3', 'length', 'max' => 32)), 'relations' => array('hasMany1' => array(RedBeanModel::MANY_MANY, 'WorkflowModelTestItem')));
return $metadata;
}
示例8: getDefaultMetadata
/**
* @return array
*/
public static function getDefaultMetadata()
{
$metadata = parent::getDefaultMetadata();
$metadata[__CLASS__] = array('members' => array('name', 'description', 'quantity', 'priceFrequency', 'type'), 'relations' => array('account' => array(static::HAS_ONE, 'Account'), 'contact' => array(static::HAS_ONE, 'Contact'), 'opportunity' => array(static::HAS_ONE, 'Opportunity'), 'productTemplate' => array(static::HAS_ONE, 'ProductTemplate'), 'stage' => array(static::HAS_ONE, 'OwnedCustomField', static::OWNED, static::LINK_TYPE_SPECIFIC, 'stage'), 'productCategories' => array(static::MANY_MANY, 'ProductCategory'), 'sellPrice' => array(static::HAS_ONE, 'CurrencyValue', static::OWNED, static::LINK_TYPE_SPECIFIC, 'sellPrice')), 'rules' => array(array('name', 'required'), array('name', 'type', 'type' => 'string'), array('name', 'length', 'min' => 1, 'max' => 64), array('description', 'type', 'type' => 'string'), array('quantity', 'numerical', 'min' => 1), array('quantity', 'type', 'type' => 'integer'), array('stage', 'required'), array('quantity', 'required'), array('type', 'type', 'type' => 'integer'), array('priceFrequency', 'type', 'type' => 'integer'), array('sellPrice', 'required'), array('type', 'required'), array('priceFrequency', 'required')), 'elements' => array('account' => 'Account', 'contact' => 'Contact', 'description' => 'TextArea', 'opportunity' => 'Opportunity', 'priceFrequency' => 'ProductTemplatePriceFrequencyDropDown', 'productTemplate' => 'ProductTemplate', 'sellPrice' => 'CurrencyValue', 'type' => 'ProductTemplateTypeDropDown'), 'customFields' => array('stage' => 'ProductStages'), 'defaultSortAttribute' => 'name', 'noAudit' => array(), 'nonConfigurableAttributes' => array('priceFrequency', 'type', 'productTemplate'), 'globalSearchAttributeNames' => array('name'));
return $metadata;
}
示例9: 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;
}
示例10: 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;
}
示例11: getDefaultMetadata
public static function getDefaultMetadata()
{
$metadata = parent::getDefaultMetadata();
$metadata[__CLASS__] = array('members' => array('name', 'subject', 'status', 'sendOnDateTime', 'supportsRichText', 'enableTracking', 'htmlContent', 'textContent', 'fromName', 'fromAddress'), 'rules' => array(array('name', 'required'), array('name', 'type', 'type' => 'string'), array('name', 'length', 'min' => 3, 'max' => 64), array('status', 'required'), array('status', 'type', 'type' => 'integer'), array('status', 'default', 'value' => static::STATUS_ACTIVE), array('supportsRichText', 'required'), array('supportsRichText', 'boolean'), array('sendOnDateTime', 'required'), array('sendOnDateTime', 'type', 'type' => 'datetime'), array('sendOnDateTime', 'dateTimeDefault', 'value' => DateTimeCalculatorUtil::NOW), array('fromName', 'required'), array('fromName', 'type', 'type' => 'string'), array('fromName', 'length', 'min' => 3, 'max' => 64), array('fromAddress', 'required'), array('fromAddress', 'type', 'type' => 'string'), array('fromAddress', 'length', 'min' => 6, 'max' => 64), array('fromAddress', 'email', 'except' => 'autoBuildDatabase'), array('subject', 'required'), array('subject', 'type', 'type' => 'string'), array('subject', 'length', 'min' => 3, 'max' => 64), array('htmlContent', 'type', 'type' => 'string'), array('textContent', 'type', 'type' => 'string'), array('htmlContent', 'AtLeastOneContentAreaRequiredValidator'), array('textContent', 'AtLeastOneContentAreaRequiredValidator'), array('htmlContent', 'CampaignMergeTagsValidator', 'except' => 'autoBuildDatabase'), array('textContent', 'CampaignMergeTagsValidator', 'except' => 'autoBuildDatabase'), array('enableTracking', 'boolean'), array('enableTracking', 'default', 'value' => false), array('marketingList', 'required')), 'relations' => array('campaignItems' => array(RedBeanModel::HAS_MANY, 'CampaignItem'), 'marketingList' => array(RedBeanModel::HAS_ONE, 'MarketingList', RedBeanModel::NOT_OWNED), 'files' => array(RedBeanModel::HAS_MANY, 'FileModel', RedBeanModel::OWNED, RedBeanModel::LINK_TYPE_POLYMORPHIC, 'relatedModel')), 'elements' => array('marketingList' => 'MarketingList', 'htmlContent' => 'TextArea', 'textContent' => 'TextArea', 'supportsRichText' => 'CheckBox', 'enableTracking' => 'CheckBox', 'sendDateTime' => 'DateTime', 'status' => 'CampaignStatus'), 'defaultSortAttribute' => 'name');
return $metadata;
}
示例12: getDefaultMetadata
public static function getDefaultMetadata()
{
$metadata = parent::getDefaultMetadata();
$metadata[__CLASS__] = array('members' => array('description', 'moduleClassName', 'name', 'serializedData', 'type'), 'rules' => array(array('description', 'type', 'type' => 'string'), array('moduleClassName', 'required'), array('moduleClassName', 'type', 'type' => 'string'), array('moduleClassName', 'length', 'max' => 64), array('name', 'required'), array('name', 'type', 'type' => 'string'), array('name', 'length', 'max' => 64), array('serializedData', 'required'), array('serializedData', 'type', 'type' => 'string'), array('type', 'required'), array('type', 'type', 'type' => 'string'), array('type', 'length', 'max' => 15)), 'elements' => array('type' => 'ReportTypeStaticDropDown', 'moduleClassName' => 'ModuleForReportStaticDropDown'));
return $metadata;
}
示例13: 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;
}
示例14: getDefaultMetadata
public static function getDefaultMetadata()
{
$metadata = parent::getDefaultMetadata();
$metadata[__CLASS__] = array('members' => array('name', 'serializedData', 'viewClassName'), 'rules' => array(array('name', 'required'), array('name', 'type', 'type' => 'string'), array('name', 'length', 'max' => 64), array('serializedData', 'required'), array('serializedData', 'type', 'type' => 'string'), array('viewClassName', 'required'), array('viewClassName', 'type', 'type' => 'string'), array('viewClassName', 'length', 'max' => 64)));
return $metadata;
}
示例15: getDefaultMetadata
public static function getDefaultMetadata()
{
$metadata = parent::getDefaultMetadata();
$metadata[__CLASS__] = array('members' => array('isCompleted', 'exportFileType', 'exportFileName', 'modelClassName', 'processOffset', 'serializedData', 'isJobRunning', 'cancelExport'), 'relations' => array('exportFileModel' => array(static::HAS_ONE, 'ExportFileModel', static::OWNED)), 'rules' => array(array('isCompleted', 'boolean'), array('exportFileType', 'required'), array('exportFileType', 'type', 'type' => 'string'), array('exportFileName', 'required'), array('exportFileName', 'type', 'type' => 'string'), array('modelClassName', 'required'), array('modelClassName', 'type', 'type' => 'string'), array('processOffset', 'type', 'type' => 'integer'), array('processOffset', 'default', 'value' => 0), array('serializedData', 'required'), array('serializedData', 'type', 'type' => 'longtext'), array('serializedData', 'length', 'max' => 4294967290), array('isJobRunning', 'boolean'), array('cancelExport', 'boolean')), 'defaultSortAttribute' => 'id', 'noAudit' => array('modelClassName', 'processOffset', 'serializedData', 'exportFileModel'), 'elements' => array('exportFileName' => 'ExportFileName'), 'globalSearchAttributeNames' => array('exportFileName'));
return $metadata;
}