instantiate with "self"
This commit is contained in:
parent
a8139b8696
commit
cc4f4e85bc
3 changed files with 4 additions and 4 deletions
|
@ -119,7 +119,7 @@ class CampaignType {
|
|||
]
|
||||
);
|
||||
if ($campaign_type = array_shift($campaign_type['values'])) {
|
||||
return new CampaignType($campaign_type);
|
||||
return new self($campaign_type);
|
||||
}
|
||||
else {
|
||||
return NULL;
|
||||
|
|
|
@ -200,7 +200,7 @@ class CustomField {
|
|||
]
|
||||
);
|
||||
if ($custom_field = array_shift($custom_field['values'])) {
|
||||
return new CustomField($custom_field);
|
||||
return new self($custom_field);
|
||||
}
|
||||
else {
|
||||
return NULL;
|
||||
|
|
|
@ -106,7 +106,7 @@ class CustomGroup {
|
|||
/**
|
||||
* @param $name
|
||||
*
|
||||
* @return BAO\CustomGroup
|
||||
* @return CustomGroup
|
||||
* @throws \CiviCRM_API3_Exception
|
||||
*/
|
||||
public static function fetch($name) {
|
||||
|
@ -120,7 +120,7 @@ class CustomGroup {
|
|||
]
|
||||
);
|
||||
if ($custom_group = array_shift($custom_group['values'])) {
|
||||
return new CustomGroup($custom_group);
|
||||
return new self($custom_group);
|
||||
}
|
||||
else {
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue