本文整理汇总了PHP中Mautic\ApiBundle\Serializer\Driver\ApiMetadataDriver类的典型用法代码示例。如果您正苦于以下问题:PHP ApiMetadataDriver类的具体用法?PHP ApiMetadataDriver怎么用?PHP ApiMetadataDriver使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了ApiMetadataDriver类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: loadApiMetadata
/**
* @param ApiMetadataDriver $metadata
*/
public static function loadApiMetadata(ApiMetadataDriver $metadata)
{
$metadata->setGroupPrefix('tag')->addListProperties(array('tag'))->build();
}
示例2: loadApiMetadata
/**
* Prepares the metadata for API usage
*
* @param $metadata
*/
public static function loadApiMetadata(ApiMetadataDriver $metadata)
{
$metadata->setGroupPrefix('form')->addProperties(array('id', 'label', 'showLabel', 'alias', 'type', 'defaultValue', 'isRequired', 'validationMessage', 'helpMessage', 'order', 'properties', 'labelAttributes', 'inputAttributes', 'containerAttributes', 'leadField', 'saveResult'))->build();
}
示例3: loadApiMetadata
/**
* Prepares the metadata for API usage
*
* @param $metadata
*/
public static function loadApiMetadata(ApiMetadataDriver $metadata)
{
$metadata->setGroupPrefix('notification')->addListProperties(array('id', 'name', 'heading', 'message', 'url', 'language', 'category'))->addProperties(array('publishUp', 'publishDown', 'readCount', 'sentCount'))->build();
}
示例4: loadApiMetadata
/**
* Prepares the metadata for API usage
*
* @param $metadata
*/
public static function loadApiMetadata(ApiMetadataDriver $metadata)
{
$metadata->setGroupPrefix('user')->addListProperties(array('id', 'username', 'firstName', 'lastName'))->addProperties(array('email', 'position', 'role', 'timezone', 'locale', 'lastLogin', 'lastActive', 'onlineStatus'))->build();
}
示例5: loadApiMetadata
/**
* Prepares the metadata for API usage.
*
* @param $metadata
*/
public static function loadApiMetadata(ApiMetadataDriver $metadata)
{
$metadata->setGroupPrefix('category')->addListProperties(['id', 'title', 'alias', 'description', 'color'])->build();
}
示例6: loadApiMetadata
/**
* Prepares the metadata for API usage.
*
* @param $metadata
*/
public static function loadApiMetadata(ApiMetadataDriver $metadata)
{
$metadata->setGroupPrefix('stat')->addProperties(['id', 'dateSent', 'source', 'sentCount', 'lastSent', 'sourceId', 'lead', 'dynamicContent'])->build();
}
示例7: loadApiMetadata
/**
* Prepares the metadata for API usage
*
* @param $metadata
*/
public static function loadApiMetadata(ApiMetadataDriver $metadata)
{
$metadata->setGroupPrefix('tmutmtag')->addListProperties(array('id', 'lead', 'query', 'referer', 'remoteHost', 'url', 'userAgent', 'utmCampaign', 'utmContent', 'utmMedium', 'utmSource', 'utmTerm'))->build();
}
示例8: loadApiMetadata
/**
* Prepares the metadata for API usage.
*
* @param $metadata
*/
public static function loadApiMetadata(ApiMetadataDriver $metadata)
{
$metadata->setGroupPrefix('leadNote')->addProperties(['id', 'text', 'type', 'dateTime'])->build();
}
示例9: loadApiMetadata
/**
* Prepares the metadata for API usage
*
* @param $metadata
*/
public static function loadApiMetadata(ApiMetadataDriver $metadata)
{
$metadata->setGroupPrefix('stat')->addProperties(array('id', 'clientInfo', 'dateOpened', 'device', 'deviceBrand', 'deviceModel', 'deviceOsName', 'deviceOsShortName', 'deviceOsVersion', 'deviceOsPlatform'))->build();
}
示例10: loadApiMetadata
/**
* Prepares the metadata for API usage
*
* @param $metadata
*/
public static function loadApiMetadata(ApiMetadataDriver $metadata)
{
$metadata->setGroupPrefix('page')->addListProperties(array('id', 'title', 'alias', 'category'))->addProperties(array('language', 'publishUp', 'publishDown', 'hits', 'uniqueHits', 'variantHits', 'revision', 'metaDescription', 'redirectType', 'redirectUrl', 'variantSettings', 'variantStartDate', 'variantParent', 'variantChildren', 'translationParent', 'translationChildren'))->setMaxDepth(1, 'variantParent')->setMaxDepth(1, 'variantChildren')->setMaxDepth(1, 'translationParent')->setMaxDepth(1, 'translationChildren')->build();
}
示例11: loadApiMetadata
/**
* Prepares the metadata for API usage.
*
* @param $metadata
*/
public static function loadApiMetadata(ApiMetadataDriver $metadata)
{
$metadata->setGroupPrefix('company')->addListProperties(['id', 'fields'])->build();
}
示例12: loadApiMetadata
/**
* @param ApiMetadataDriver $metadata
*/
public static function loadApiMetadata(ApiMetadataDriver $metadata)
{
$metadata->setGroupPrefix('dwc')->addListProperties(['id', 'name', 'category'])->addProperties(['publishUp', 'publishDown', 'sentCount', 'variantParent', 'variantChildren'])->setMaxDepth(1, 'variantParent')->setMaxDepth(1, 'variantChildren')->build();
}
示例13: loadApiMetadata
/**
* Prepares the metadata for API usage
*
* @param $metadata
*/
public static function loadApiMetadata(ApiMetadataDriver $metadata)
{
$metadata->setGroupPrefix('report')->addListProperties(['id', 'name', 'description', 'system'])->addProperties(['source', 'columns', 'filters', 'tableOrder', 'graphs'])->build();
}
示例14: loadApiMetadata
/**
* Prepares the metadata for API usage
*
* @param $metadata
*/
public static function loadApiMetadata(ApiMetadataDriver $metadata)
{
$metadata->setGroupPrefix('form')->addListProperties(array('id', 'name', 'alias', 'category'))->addProperties(array('description', 'cachedHtml', 'publishUp', 'publishDown', 'fields', 'actions', 'template', 'submissionCount', 'inKioskMode', 'renderStyle', 'formType'))->build();
}
示例15: loadApiMetadata
/**
* Prepares the metadata for API usage
*
* @param $metadata
*/
public static function loadApiMetadata(ApiMetadataDriver $metadata)
{
$metadata->setGroupPrefix('point')->addListProperties(array('id', 'name', 'alias', 'category', 'type', 'description'))->addProperties(array('publishUp', 'publishDown', 'delta', 'properties'))->build();
}