forked from ezsystems/PlatformUIBundle
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f6af3a9
commit 5745cd0
Showing
16 changed files
with
568 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<?php | ||
/** | ||
* File containing the EnrichedSection class. | ||
* | ||
* @copyright Copyright (C) eZ Systems AS. All rights reserved. | ||
* @license For full copyright and license information view LICENSE file distributed with this source code. | ||
* @version //autogentag// | ||
*/ | ||
|
||
namespace EzSystems\PlatformUIBundle\Entity; | ||
|
||
use eZ\Publish\API\Repository\Values\Content\Section; | ||
|
||
/** | ||
* Class EnrichedSection | ||
* | ||
* This class is a container for a Section and extra information | ||
* | ||
* @package EzSystems\PlatformUIBundle\Entity | ||
*/ | ||
class EnrichedSection | ||
{ | ||
/** | ||
* @var \eZ\Publish\API\Repository\Values\Content\Section | ||
*/ | ||
public $section; | ||
|
||
/** | ||
* @var int | ||
*/ | ||
public $contentCount; | ||
|
||
/** | ||
* @var bool | ||
*/ | ||
public $canEdit; | ||
|
||
/** | ||
* @var bool | ||
*/ | ||
public $canDelete; | ||
|
||
/** | ||
* @var bool | ||
*/ | ||
public $canAssign; | ||
|
||
/** | ||
* @param \eZ\Publish\API\Repository\Values\Content\Section $section | ||
* @param int $contentCount | ||
* @param bool $canEdit | ||
* @param bool $canDelete | ||
* @param bool $canAssign | ||
*/ | ||
public function __construct( Section $section, $contentCount, $canEdit, $canDelete, $canAssign ) | ||
{ | ||
$this->section = $section; | ||
$this->contentCount = $contentCount; | ||
$this->canEdit = $canEdit; | ||
$this->canDelete = $canDelete; | ||
$this->canAssign = $canAssign; | ||
} | ||
} |
Oops, something went wrong.