Fix scrutinizer
This commit is contained in:
parent
f853dbc152
commit
afdc176f47
@ -216,7 +216,7 @@ class Subscription extends CommonObject
|
|||||||
$result=$member->fetch($this->fk_adherent);
|
$result=$member->fetch($this->fk_adherent);
|
||||||
$result=$member->update_end_date($user);
|
$result=$member->update_end_date($user);
|
||||||
|
|
||||||
if (is_object($accountline) && $accountline->id > 0) // If we found bank account line (this means this->fk_bank defined)
|
if ($this->fk_bank > 0 && is_object($accountline) && $accountline->id > 0) // If we found bank account line (this means this->fk_bank defined)
|
||||||
{
|
{
|
||||||
$result=$accountline->delete($user); // Return false if refused because line is conciliated
|
$result=$accountline->delete($user); // Return false if refused because line is conciliated
|
||||||
if ($result > 0)
|
if ($result > 0)
|
||||||
|
|||||||
@ -130,18 +130,20 @@ class Documents extends DolibarrApi
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the list of documents of an element
|
* Return the list of documents of a dedicated element (from its ID or Ref)
|
||||||
*
|
*
|
||||||
* @param string $modulepart Name of module or area concerned ('facture', 'project', 'member', ...)
|
* @param string $modulepart Name of module or area concerned ('facture', 'project', 'member', ...)
|
||||||
* @param int $id ID of element
|
* @param int $id ID of element
|
||||||
* @param string $ref Ref of element
|
* @param string $ref Ref of element
|
||||||
* @return array Array of documents with path
|
* @param string $sortfield Sort criteria ('','fullname','relativename','name','date','size')
|
||||||
|
* @param string $sortorder Sort order ('asc' or 'desc')
|
||||||
|
* @return array Array of documents with path
|
||||||
*
|
*
|
||||||
* @throws RestException
|
* @throws RestException
|
||||||
*
|
*
|
||||||
* @url GET list
|
* @url GET list
|
||||||
*/
|
*/
|
||||||
function getDocumentsListByElement($modulepart, $id=0, $ref='')
|
function getDocumentsListByElement($modulepart, $id=0, $ref='', $sortfield='', $sortorder='')
|
||||||
{
|
{
|
||||||
global $conf;
|
global $conf;
|
||||||
|
|
||||||
|
|||||||
@ -21,13 +21,15 @@
|
|||||||
|
|
||||||
class BlockedLog
|
class BlockedLog
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Id of the log
|
* Id of the log
|
||||||
* @var int
|
* @var int
|
||||||
*/
|
*/
|
||||||
public $id;
|
public $id;
|
||||||
|
|
||||||
|
public $error = '';
|
||||||
|
public $errors = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Unique fingerprint of the log
|
* Unique fingerprint of the log
|
||||||
* @var string
|
* @var string
|
||||||
@ -78,7 +80,7 @@ class BlockedLog
|
|||||||
|
|
||||||
public $object_data = null;
|
public $object_data = null;
|
||||||
|
|
||||||
public $error = 0;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
@ -126,7 +128,7 @@ class BlockedLog
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* try to retrieve user author
|
* try to retrieve user author
|
||||||
*/
|
*/
|
||||||
public function getUser() {
|
public function getUser() {
|
||||||
global $langs, $cachedUser;
|
global $langs, $cachedUser;
|
||||||
|
|
||||||
@ -188,8 +190,6 @@ class BlockedLog
|
|||||||
$this->object_data->amounts = $object->amounts;
|
$this->object_data->amounts = $object->amounts;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -231,7 +231,7 @@ class BlockedLog
|
|||||||
$this->action = $obj->action;
|
$this->action = $obj->action;
|
||||||
$this->element = $obj->element;
|
$this->element = $obj->element;
|
||||||
|
|
||||||
$this->fk_object = trim($obj->fk_object);
|
$this->fk_object = $obj->fk_object;
|
||||||
$this->date_object = $this->db->jdate($obj->date_object);
|
$this->date_object = $this->db->jdate($obj->date_object);
|
||||||
$this->ref_object = $obj->ref_object;
|
$this->ref_object = $obj->ref_object;
|
||||||
|
|
||||||
@ -432,10 +432,10 @@ class BlockedLog
|
|||||||
/**
|
/**
|
||||||
* return log object for a element.
|
* return log object for a element.
|
||||||
*
|
*
|
||||||
* @param string $element element to search
|
* @param string $element element to search
|
||||||
* @param int $fk_object id of object to search
|
* @param int $fk_object id of object to search
|
||||||
* @param int $limit max number of element, 0 for all
|
* @param int $limit max number of element, 0 for all
|
||||||
* @param string $order sort of query
|
* @param string $order sort of query
|
||||||
* @return array array of object log
|
* @return array array of object log
|
||||||
*/
|
*/
|
||||||
public function getLog($element, $fk_object, $limit = 0, $order = -1) {
|
public function getLog($element, $fk_object, $limit = 0, $order = -1) {
|
||||||
|
|||||||
@ -273,6 +273,8 @@ class EmailSenderProfile extends CommonObject
|
|||||||
$result = '';
|
$result = '';
|
||||||
$companylink = '';
|
$companylink = '';
|
||||||
|
|
||||||
|
$label=$this->label;
|
||||||
|
|
||||||
$url='';
|
$url='';
|
||||||
//$url = dol_buildpath('/monmodule/emailsenderprofile_card.php',1).'?id='.$this->id;
|
//$url = dol_buildpath('/monmodule/emailsenderprofile_card.php',1).'?id='.$this->id;
|
||||||
|
|
||||||
|
|||||||
@ -47,7 +47,7 @@ function dol_basename($pathfile)
|
|||||||
* @param string $filter Regex filter to restrict list. This regex value must be escaped for '/' by doing preg_quote($var,'/'), since this char is used for preg_match function,
|
* @param string $filter Regex filter to restrict list. This regex value must be escaped for '/' by doing preg_quote($var,'/'), since this char is used for preg_match function,
|
||||||
* but must not contains the start and end '/'. Filter is checked into basename only.
|
* but must not contains the start and end '/'. Filter is checked into basename only.
|
||||||
* @param array $excludefilter Array of Regex for exclude filter (example: array('(\.meta|_preview.*\.png)$','^\.')). Exclude is checked into fullpath.
|
* @param array $excludefilter Array of Regex for exclude filter (example: array('(\.meta|_preview.*\.png)$','^\.')). Exclude is checked into fullpath.
|
||||||
* @param string $sortcriteria Sort criteria ("","fullname","relativename","name","date","size")
|
* @param string $sortcriteria Sort criteria ('','fullname','relativename','name','date','size')
|
||||||
* @param string $sortorder Sort order (SORT_ASC, SORT_DESC)
|
* @param string $sortorder Sort order (SORT_ASC, SORT_DESC)
|
||||||
* @param int $mode 0=Return array minimum keys loaded (faster), 1=Force all keys like date and size to be loaded (slower), 2=Force load of date only, 3=Force load of size only
|
* @param int $mode 0=Return array minimum keys loaded (faster), 1=Force all keys like date and size to be loaded (slower), 2=Force load of date only, 3=Force load of size only
|
||||||
* @param int $nohook Disable all hooks
|
* @param int $nohook Disable all hooks
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user