當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Components\Component類代碼示例

本文整理匯總了PHP中Ctct\Components\Component的典型用法代碼示例。如果您正苦於以下問題:PHP Component類的具體用法?PHP Component怎麽用?PHP Component使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了Component類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: create

 /**
  * Factory method to create an VerifiedEmail object from an array
  * @param array $props - associative array of initial properties to set
  * @return VerifiedEmailAddress
  */
 public static function create(array $props)
 {
     $verifiedAddress = new VerifiedEmailAddress();
     $verifiedAddress->email_address = parent::getValue($props, "email_address");
     $verifiedAddress->status = parent::getValue($props, "status");
     return $verifiedAddress;
 }
開發者ID:kidaa30,項目名稱:Constant-Contact-WordPress-Plugin,代碼行數:12,代碼來源:VerifiedEmailAddress.php

示例2: create

 /**
  * Factory method to create a CustomField object from an array
  * @param array $props - Associative array of initial properties to set
  * @return CustomField
  */
 public static function create(array $props)
 {
     $custom_field = new CustomField();
     $custom_field->name = parent::getValue($props, "name");
     $custom_field->value = parent::getValue($props, "value");
     return $custom_field;
 }
開發者ID:k2jysy,項目名稱:kshop,代碼行數:12,代碼來源:CustomField.php

示例3: create

 /**
  * Factory method to create a Schedule object from an array
  * @param array $props - associative array of initial properties to set
  * @return Schedule
  */
 public static function create(array $props)
 {
     $schedule = new Schedule();
     $schedule->id = parent::getValue($props, "id");
     $schedule->scheduled_date = parent::getValue($props, "scheduled_date");
     return $schedule;
 }
開發者ID:helpfulrobot,項目名稱:selay-silverstripe-constantcontact,代碼行數:12,代碼來源:Schedule.php

示例4: create

 /**
  * Factory method to create an Activity object from an array
  * @param array $props - associative array of initial properties to set
  * @return Activity
  */
 public static function create(array $props)
 {
     $activity = new Activity();
     $activity->id = parent::getValue($props, "id");
     $activity->type = parent::getValue($props, "type");
     $activity->status = parent::getValue($props, "status");
     $activity->start_date = parent::getValue($props, "start_date");
     $activity->finish_date = parent::getValue($props, "finish_date");
     $activity->created_date = parent::getValue($props, "created_date");
     $activity->error_count = parent::getValue($props, "error_count");
     $activity->contact_count = parent::getValue($props, "contact_count");
     // set any errors that exist, otherwise destroy the property
     if (array_key_exists('errors', $props)) {
         foreach ($props['errors'] as $error) {
             $activity->errors[] = ActivityError::create($error);
         }
     } else {
         unset($activity->errors);
     }
     // set any warnings that exist, otherwise destroy the property
     if (array_key_exists('warnings', $props)) {
         foreach ($props['warnings'] as $error) {
             $activity->warnings[] = ActivityError::create($error);
         }
     } else {
         unset($activity->warnings);
     }
     // set the file name if exists
     if (array_key_exists('file_name', $props)) {
         $activity->file_name = $props['file_name'];
     } else {
         unset($activity->file_name);
     }
     return $activity;
 }
開發者ID:rafabrutaldrums,項目名稱:casamacario,代碼行數:40,代碼來源:Activity.php

示例5: create

 public static function create(array $props)
 {
     $fileUploadStatus = new FileUploadStatus();
     $fileUploadStatus->description = parent::getValue($props, "description");
     $fileUploadStatus->file_id = parent::getValue($props, "file_id");
     $fileUploadStatus->status = parent::getValue($props, "status");
     return $fileUploadStatus;
 }
開發者ID:GafaMX,項目名稱:dev_funciones_basicas,代碼行數:8,代碼來源:FileUploadStatus.php

示例6: create

 /**
  * Factory method to create a Note object from an array
  * @param array $props - Associative array of initial properties to set
  * @return Note
  */
 public static function create(array $props)
 {
     $note = new Note();
     $note->id = parent::getValue($props, "id");
     $note->note = parent::getValue($props, "note");
     $note->created_date = parent::getValue($props, "created_date");
     return $note;
 }
開發者ID:k2jysy,項目名稱:kshop,代碼行數:13,代碼來源:Note.php

示例7: create

 /**
  * Factory method to create an  object from an array
  * @param array $props - associative array of initial properties to set
  * @return ActivityError
  */
 public static function create(array $props)
 {
     $activityError = new ActivityError();
     $activityError->message = parent::getValue($props, "message");
     $activityError->line_number = parent::getValue($props, "line_number");
     $activityError->email_address = parent::getValue($props, "email_address");
     return $activityError;
 }
開發者ID:k2jysy,項目名稱:kshop,代碼行數:13,代碼來源:ActivityError.php

示例8: create

 /**
  * Factory method to create a ClickThroughDetails object from an array
  * @param array $props - associative array of initial properties to set
  * @return ClickThroughDetails
  */
 public static function create(array $props)
 {
     $click_through_details = new ClickThroughDetails();
     $click_through_details->url = parent::getValue($props, "url");
     $click_through_details->url_uid = parent::getValue($props, "url_uid");
     $click_through_details->click_count = parent::getValue($props, "click_count");
     return $click_through_details;
 }
開發者ID:helpfulrobot,項目名稱:selay-silverstripe-constantcontact,代碼行數:13,代碼來源:ClickThroughDetails.php

示例9: create

 public static function create(array $props)
 {
     $thumbnail = new Thumbnail();
     $thumbnail->url = parent::getValue($props, "url");
     $thumbnail->width = parent::getValue($props, "width");
     $thumbnail->height = parent::getValue($props, "height");
     return $thumbnail;
 }
開發者ID:rafabrutaldrums,項目名稱:casamacario,代碼行數:8,代碼來源:Thumbnail.php

示例10: create

 /**
  * Factory method to create a ContactList object from an array
  * @param array $props - Associative array of initial properties to set
  * @return ContactList
  */
 public static function create(array $props)
 {
     $contact_list = new ContactList();
     $contact_list->id = parent::getValue($props, "id");
     $contact_list->name = parent::getValue($props, "name");
     $contact_list->status = parent::getValue($props, "status");
     $contact_list->contact_count = parent::getValue($props, "contact_count");
     return $contact_list;
 }
開發者ID:helpfulrobot,項目名稱:iqnection-pages-constantcontact,代碼行數:14,代碼來源:ContactList.php

示例11: create

 /**
  * Factory method to create a OpenActivity object from an array
  * @param array $props - array of properties to create object from
  * @return OpenActivity
  */
 public static function create(array $props)
 {
     $open_activity = new OpenActivity();
     $open_activity->activity_type = parent::getValue($props, "activity_type");
     $open_activity->open_date = parent::getValue($props, "open_date");
     $open_activity->contact_id = parent::getValue($props, "contact_id");
     $open_activity->email_address = parent::getValue($props, "email_address");
     $open_activity->campaign_id = parent::getValue($props, "campaign_id");
     return $open_activity;
 }
開發者ID:rafabrutaldrums,項目名稱:casamacario,代碼行數:15,代碼來源:OpenActivity.php

示例12: create

 /**
  * Factory method to create a TestSend object from an array
  * @param array $props - associative array of initial properties to set
  * @return TestSend
  */
 public static function create(array $props)
 {
     $test_send = new TestSend();
     $test_send->format = parent::getValue($props, "format");
     $test_send->personal_message = parent::getValue($props, "personal_message");
     foreach ($props['email_addresses'] as $email_address) {
         $test_send->email_addresses[] = $email_address;
     }
     return $test_send;
 }
開發者ID:helpfulrobot,項目名稱:iqnection-pages-constantcontact,代碼行數:15,代碼來源:TestSend.php

示例13: create

 /**
  * Factory method to create a CampaignPreview object from an array
  * @param array $props - associative array of initial properties to set
  * @return CampaignPreview
  */
 public static function create(array $props)
 {
     $preview = new CampaignPreview();
     $preview->fromEmail = parent::getValue($props, "from_email");
     $preview->replyToEmail = parent::getValue($props, "reply_to_email");
     $preview->htmlContent = parent::getValue($props, "preview_email_content");
     $preview->textContent = parent::getValue($props, "preview_text_content");
     $preview->subject = parent::getValue($props, "subject");
     return $preview;
 }
開發者ID:GafaMX,項目名稱:dev_funciones_basicas,代碼行數:15,代碼來源:CampaignPreview.php

示例14: create

 /**
  * Factory method to create a SentActivity object from an array
  * @param array $props - array of properties to create object from
  * @return SentActivity
  */
 public static function create(array $props)
 {
     $sent_activity = new SendActivity();
     $sent_activity->activity_type = parent::getValue($props, "activity_type");
     $sent_activity->send_date = parent::getValue($props, "send_date");
     $sent_activity->contact_id = parent::getValue($props, "contact_id");
     $sent_activity->email_address = parent::getValue($props, "email_address");
     $sent_activity->campaign_id = parent::getValue($props, "campaign_id");
     return $sent_activity;
 }
開發者ID:helpfulrobot,項目名稱:selay-silverstripe-constantcontact,代碼行數:15,代碼來源:SendActivity.php

示例15: create

 /**
  * Factory method to create a TrackingSummary object from an array
  * @param array $props - array of properties to create object from
  * @return TrackingSummary
  */
 public static function create(array $props)
 {
     $tracking_summary = new TrackingSummary();
     $tracking_summary->sends = parent::getValue($props, "sends");
     $tracking_summary->opens = parent::getValue($props, "opens");
     $tracking_summary->clicks = parent::getValue($props, "clicks");
     $tracking_summary->forwards = parent::getValue($props, "forwards");
     $tracking_summary->unsubscribes = parent::getValue($props, "unsubscribes");
     $tracking_summary->bounces = parent::getValue($props, "bounces");
     return $tracking_summary;
 }
開發者ID:helpfulrobot,項目名稱:selay-silverstripe-constantcontact,代碼行數:16,代碼來源:TrackingSummary.php


注:本文中的Ctct\Components\Component類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。