fix class name detection
This commit is contained in:
parent
c79e799242
commit
905d791f1a
3 changed files with 7 additions and 4 deletions
|
@ -19,10 +19,11 @@ class CRM_TwingleCampaign_BAO_TwingleProject extends Campaign {
|
|||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
protected function __construct(array $project, string $origin) {
|
||||
function __construct(array $project, string $origin) {
|
||||
parent::__construct($project, $origin);
|
||||
|
||||
$this->className = (new ReflectionClass($this))->getShortName();
|
||||
$className = explode('_', (new ReflectionClass($this))->getShortName());
|
||||
$this->className = array_pop($className);;
|
||||
$this->prefix = 'twingle_project_';
|
||||
$this->values['campaign_type_id'] = 'twingle_project';
|
||||
$this->id_custom_field = Cache::getInstance()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue