cs fixes
This commit is contained in:
@@ -29,23 +29,23 @@
|
||||
|
||||
namespace Espo\Modules\Crm\Services;
|
||||
|
||||
use \Espo\ORM\Entity;
|
||||
use Espo\ORM\Entity;
|
||||
|
||||
class Account extends \Espo\Services\Record
|
||||
{
|
||||
protected $linkSelectParams = array(
|
||||
'contacts' => array(
|
||||
'additionalColumns' => array(
|
||||
protected $linkSelectParams = [
|
||||
'contacts' => [
|
||||
'additionalColumns' => [
|
||||
'role' => 'accountRole',
|
||||
'isInactive' => 'accountIsInactive'
|
||||
)
|
||||
),
|
||||
'targetLists' => array(
|
||||
'additionalColumns' => array(
|
||||
]
|
||||
],
|
||||
'targetLists' => [
|
||||
'additionalColumns' => [
|
||||
'optedOut' => 'isOptedOut'
|
||||
)
|
||||
)
|
||||
);
|
||||
]
|
||||
]
|
||||
];
|
||||
|
||||
protected function getDuplicateWhereClause(Entity $entity, $data)
|
||||
{
|
||||
|
||||
@@ -29,10 +29,7 @@
|
||||
|
||||
namespace Espo\Modules\Crm\Services;
|
||||
|
||||
use \Espo\ORM\Entity;
|
||||
|
||||
use \Espo\Core\Exceptions\Error;
|
||||
use \Espo\Core\Exceptions\Forbidden;
|
||||
use Espo\ORM\Entity;
|
||||
|
||||
class Call extends Meeting
|
||||
{
|
||||
@@ -90,5 +87,4 @@ class Call extends Meeting
|
||||
$this->loadPhoneNumbersMapField($entity);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -29,11 +29,11 @@
|
||||
|
||||
namespace Espo\Modules\Crm\Services;
|
||||
|
||||
use \Espo\ORM\Entity;
|
||||
use Espo\ORM\Entity;
|
||||
|
||||
use \Espo\Core\Exceptions\Error,
|
||||
\Espo\Core\Exceptions\Forbidden,
|
||||
\Espo\Core\Exceptions\BadRequest;
|
||||
use Espo\Core\Exceptions\Error,
|
||||
Espo\Core\Exceptions\Forbidden,
|
||||
Espo\Core\Exceptions\BadRequest;
|
||||
|
||||
class Campaign extends \Espo\Services\Record
|
||||
{
|
||||
|
||||
@@ -29,9 +29,6 @@
|
||||
|
||||
namespace Espo\Modules\Crm\Services;
|
||||
|
||||
use \Espo\Core\Exceptions\Forbidden;
|
||||
use \Espo\ORM\Entity;
|
||||
|
||||
class CampaignLogRecord extends \Espo\Services\Record
|
||||
{
|
||||
protected $forceSelectAllAttributes = true;
|
||||
|
||||
@@ -29,8 +29,8 @@
|
||||
|
||||
namespace Espo\Modules\Crm\Services;
|
||||
|
||||
use \Espo\Core\Exceptions\Forbidden;
|
||||
use \Espo\ORM\Entity;
|
||||
use Espo\Core\Exceptions\Forbidden;
|
||||
use Espo\ORM\Entity;
|
||||
|
||||
class CampaignTrackingUrl extends \Espo\Services\Record
|
||||
{
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
|
||||
namespace Espo\Modules\Crm\Services;
|
||||
|
||||
use \Espo\ORM\Entity;
|
||||
use Espo\ORM\Entity;
|
||||
|
||||
class CaseObj extends \Espo\Services\Record
|
||||
{
|
||||
@@ -177,4 +177,3 @@ class CaseObj extends \Espo\Services\Record
|
||||
return $list;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -29,11 +29,10 @@
|
||||
|
||||
namespace Espo\Modules\Crm\Services;
|
||||
|
||||
use \Espo\ORM\Entity;
|
||||
use Espo\ORM\Entity;
|
||||
|
||||
class Contact extends \Espo\Core\Templates\Services\Person
|
||||
{
|
||||
|
||||
protected $readOnlyAttributeList = [
|
||||
'inboundEmailId',
|
||||
'portalUserId'
|
||||
|
||||
@@ -29,12 +29,11 @@
|
||||
|
||||
namespace Espo\Modules\Crm\Services;
|
||||
|
||||
use \Espo\ORM\Entity;
|
||||
use \Espo\Core\Exceptions\NotFound;
|
||||
use Espo\Core\Exceptions\NotFound;
|
||||
|
||||
class Document extends \Espo\Services\Record
|
||||
{
|
||||
public function getAttachmentList($id)
|
||||
public function getAttachmentList(string $id)
|
||||
{
|
||||
$entity = $this->getEntity($id);
|
||||
|
||||
@@ -60,4 +59,3 @@ class Document extends \Espo\Services\Record
|
||||
return $attachmentList;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -29,12 +29,9 @@
|
||||
|
||||
namespace Espo\Modules\Crm\Services;
|
||||
|
||||
use \Espo\ORM\Entity;
|
||||
|
||||
class DocumentFolder extends \Espo\Services\RecordTree
|
||||
{
|
||||
protected $subjectEntityType = 'Document';
|
||||
|
||||
protected $categoryField = 'folder';
|
||||
|
||||
}
|
||||
|
||||
@@ -29,11 +29,11 @@
|
||||
|
||||
namespace Espo\Modules\Crm\Services;
|
||||
|
||||
use \Espo\ORM\Entity;
|
||||
use Espo\ORM\Entity;
|
||||
|
||||
use \Espo\Core\Exceptions\Forbidden;
|
||||
use \Espo\Core\Exceptions\NotFound;
|
||||
use \Espo\Core\Exceptions\Error;
|
||||
use Espo\Core\Exceptions\Forbidden;
|
||||
use Espo\Core\Exceptions\NotFound;
|
||||
use Espo\Core\Exceptions\Error;
|
||||
|
||||
class KnowledgeBaseArticle extends \Espo\Services\Record
|
||||
{
|
||||
|
||||
@@ -29,12 +29,11 @@
|
||||
|
||||
namespace Espo\Modules\Crm\Services;
|
||||
|
||||
use \Espo\ORM\Entity;
|
||||
use Espo\ORM\Entity;
|
||||
|
||||
class KnowledgeBaseCategory extends \Espo\Services\RecordTree
|
||||
{
|
||||
protected $subjectEntityType = 'KnowledgeBaseArticle';
|
||||
|
||||
protected $categoryField = 'categories';
|
||||
|
||||
}
|
||||
|
||||
@@ -29,10 +29,10 @@
|
||||
|
||||
namespace Espo\Modules\Crm\Services;
|
||||
|
||||
use \Espo\Core\Exceptions\Error;
|
||||
use \Espo\Core\Exceptions\Forbidden;
|
||||
use Espo\Core\Exceptions\Error;
|
||||
use Espo\Core\Exceptions\Forbidden;
|
||||
|
||||
use \Espo\ORM\Entity;
|
||||
use Espo\ORM\Entity;
|
||||
|
||||
class Lead extends \Espo\Core\Templates\Services\Person
|
||||
{
|
||||
|
||||
@@ -29,12 +29,12 @@
|
||||
|
||||
namespace Espo\Modules\Crm\Services;
|
||||
|
||||
use \Espo\ORM\Entity;
|
||||
use \Espo\Modules\Crm\Business\Event\Invitations;
|
||||
use Espo\ORM\Entity;
|
||||
use Espo\Modules\Crm\Business\Event\Invitations;
|
||||
|
||||
use \Espo\Core\Exceptions\Error;
|
||||
use \Espo\Core\Exceptions\Forbidden;
|
||||
use \Espo\Core\Exceptions\BadRequest;
|
||||
use Espo\Core\Exceptions\Error;
|
||||
use Espo\Core\Exceptions\Forbidden;
|
||||
use Espo\Core\Exceptions\BadRequest;
|
||||
|
||||
class Meeting extends \Espo\Services\Record
|
||||
{
|
||||
|
||||
@@ -29,10 +29,10 @@
|
||||
|
||||
namespace Espo\Modules\Crm\Services;
|
||||
|
||||
use \Espo\ORM\Entity;
|
||||
use Espo\ORM\Entity;
|
||||
|
||||
use \Espo\Core\Exceptions\Error;
|
||||
use \Espo\Core\Exceptions\Forbidden;
|
||||
use Espo\Core\Exceptions\Error;
|
||||
use Espo\Core\Exceptions\Forbidden;
|
||||
|
||||
class Opportunity extends \Espo\Services\Record
|
||||
{
|
||||
|
||||
@@ -29,9 +29,9 @@
|
||||
|
||||
namespace Espo\Modules\Crm\Services;
|
||||
|
||||
use \Espo\Core\Exceptions\Error;
|
||||
use \Espo\Core\Exceptions\Forbidden;
|
||||
use \Espo\ORM\Entity;
|
||||
use Espo\Core\Exceptions\Error;
|
||||
use Espo\Core\Exceptions\Forbidden;
|
||||
use Espo\ORM\Entity;
|
||||
|
||||
class Target extends \Espo\Services\Record
|
||||
{
|
||||
@@ -91,4 +91,3 @@ class Target extends \Espo\Services\Record
|
||||
return $lead;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -29,10 +29,10 @@
|
||||
|
||||
namespace Espo\Modules\Crm\Services;
|
||||
|
||||
use \Espo\Core\Exceptions\Error;
|
||||
use \Espo\Core\Exceptions\Forbidden;
|
||||
use Espo\Core\Exceptions\Error;
|
||||
use Espo\Core\Exceptions\Forbidden;
|
||||
|
||||
use \Espo\ORM\Entity;
|
||||
use Espo\ORM\Entity;
|
||||
|
||||
class Task extends \Espo\Services\Record
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user