當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。