mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
Enhanced entities
This commit is contained in:
@@ -294,4 +294,29 @@ class Basket
|
|||||||
return $this->validation;
|
return $this->validation;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var boolean $is_read
|
||||||
|
*/
|
||||||
|
private $is_read = false;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set is_read
|
||||||
|
*
|
||||||
|
* @param boolean $isRead
|
||||||
|
*/
|
||||||
|
public function setIsRead($isRead)
|
||||||
|
{
|
||||||
|
$this->is_read = $isRead;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get is_read
|
||||||
|
*
|
||||||
|
* @return boolean
|
||||||
|
*/
|
||||||
|
public function getIsRead()
|
||||||
|
{
|
||||||
|
return $this->is_read;
|
||||||
|
}
|
||||||
}
|
}
|
@@ -21,7 +21,7 @@ require_once __DIR__ . '/../../classes/cache/cacheableInterface.class.php';
|
|||||||
require_once __DIR__ . '/../../classes/User/Interface.class.php';
|
require_once __DIR__ . '/../../classes/User/Interface.class.php';
|
||||||
require_once __DIR__ . '/../../classes/User/Adapter.class.php';
|
require_once __DIR__ . '/../../classes/User/Adapter.class.php';
|
||||||
|
|
||||||
class WorkZone
|
class StoryWorkZone
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -147,8 +147,14 @@ class WorkZone
|
|||||||
|
|
||||||
public function setRecord(\record_adapter $record)
|
public function setRecord(\record_adapter $record)
|
||||||
{
|
{
|
||||||
|
if(!$record->is_grouping())
|
||||||
|
{
|
||||||
|
throw new \Exception('Only storie allowed');
|
||||||
|
}
|
||||||
|
|
||||||
$this->setRecordId($record->get_record_id());
|
$this->setRecordId($record->get_record_id());
|
||||||
$this->setSbasId($record->get_sbas_id());
|
$this->setSbasId($record->get_sbas_id());
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
@@ -112,4 +112,29 @@ class ValidationParticipant
|
|||||||
{
|
{
|
||||||
return $this->session;
|
return $this->session;
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* @var boolean $is_aware
|
||||||
|
*/
|
||||||
|
private $is_aware = false;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set is_aware
|
||||||
|
*
|
||||||
|
* @param boolean $isAware
|
||||||
|
*/
|
||||||
|
public function setIsAware($isAware)
|
||||||
|
{
|
||||||
|
$this->is_aware = $isAware;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get is_aware
|
||||||
|
*
|
||||||
|
* @return boolean
|
||||||
|
*/
|
||||||
|
public function getIsAware()
|
||||||
|
{
|
||||||
|
return $this->is_aware;
|
||||||
|
}
|
||||||
}
|
}
|
@@ -15,6 +15,8 @@ Entities\Basket:
|
|||||||
nullable: true
|
nullable: true
|
||||||
usr_id:
|
usr_id:
|
||||||
type: integer
|
type: integer
|
||||||
|
is_read:
|
||||||
|
type: boolean
|
||||||
pusher_id:
|
pusher_id:
|
||||||
type: integer
|
type: integer
|
||||||
nullable: true
|
nullable: true
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
Entities\WorkZone:
|
Entities\StoryWorkZone:
|
||||||
type: entity
|
type: entity
|
||||||
table: WorkZone
|
table: StoryWorkZone
|
||||||
uniqueConstraints:
|
uniqueConstraints:
|
||||||
user_story:
|
user_story:
|
||||||
columns: usr_id,sbas_id,record_id
|
columns: usr_id,sbas_id,record_id
|
@@ -9,6 +9,8 @@ Entities\ValidationParticipant:
|
|||||||
fields:
|
fields:
|
||||||
usr_id:
|
usr_id:
|
||||||
type: integer
|
type: integer
|
||||||
|
is_aware:
|
||||||
|
type: boolean
|
||||||
oneToMany:
|
oneToMany:
|
||||||
datases:
|
datases:
|
||||||
targetEntity: ValidationData
|
targetEntity: ValidationData
|
||||||
|
Reference in New Issue
Block a user