/** * @param CRM_Extension_Info $info * * @return bool */ private function _createExtensionEntry(CRM_Extension_Info $info) { $dao = new CRM_Core_DAO_Extension(); $dao->label = $info->label; $dao->name = $info->name; $dao->full_name = $info->key; $dao->type = $info->type; $dao->file = $info->file; $dao->is_active = 1; return (bool) $dao->insert(); }
private function _createExtensionEntry() { $dao = new CRM_Core_DAO_Extension(); $dao->label = $this->label; $dao->name = $this->name; $dao->full_name = $this->key; $dao->type = $this->type; $dao->file = $this->file; $dao->is_active = 1; if ($dao->insert()) { $this->id = $dao->id; return $this->id; } }