当前位置: 首页>>代码示例>>PHP>>正文


PHP Driver\ApiMetadataDriver类代码示例

本文整理汇总了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();
 }
开发者ID:Jandersolutions,项目名称:mautic,代码行数:7,代码来源:Tag.php

示例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();
 }
开发者ID:HomeRefill,项目名称:mautic,代码行数:9,代码来源:Field.php

示例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();
 }
开发者ID:HomeRefill,项目名称:mautic,代码行数:9,代码来源:Notification.php

示例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();
 }
开发者ID:Jandersolutions,项目名称:mautic,代码行数:9,代码来源:User.php

示例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();
 }
开发者ID:dongilbert,项目名称:mautic,代码行数:9,代码来源:Category.php

示例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();
 }
开发者ID:dongilbert,项目名称:mautic,代码行数:9,代码来源:Stat.php

示例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();
 }
开发者ID:Yame-,项目名称:mautic,代码行数:9,代码来源:UtmTag.php

示例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();
 }
开发者ID:dongilbert,项目名称:mautic,代码行数:9,代码来源:LeadNote.php

示例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();
 }
开发者ID:Yame-,项目名称:mautic,代码行数:9,代码来源:LeadDevice.php

示例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();
 }
开发者ID:Yame-,项目名称:mautic,代码行数:9,代码来源:Page.php

示例11: loadApiMetadata

 /**
  * Prepares the metadata for API usage.
  *
  * @param $metadata
  */
 public static function loadApiMetadata(ApiMetadataDriver $metadata)
 {
     $metadata->setGroupPrefix('company')->addListProperties(['id', 'fields'])->build();
 }
开发者ID:dongilbert,项目名称:mautic,代码行数:9,代码来源:Company.php

示例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();
 }
开发者ID:Yame-,项目名称:mautic,代码行数:7,代码来源:DynamicContent.php

示例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();
 }
开发者ID:Yame-,项目名称:mautic,代码行数:9,代码来源:Report.php

示例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();
 }
开发者ID:spdaly,项目名称:mautic,代码行数:9,代码来源:Form.php

示例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();
 }
开发者ID:Jandersolutions,项目名称:mautic,代码行数:9,代码来源:Point.php


注:本文中的Mautic\ApiBundle\Serializer\Driver\ApiMetadataDriver类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。