Actualización

This commit is contained in:
Xes
2025-04-10 12:24:57 +02:00
parent 8969cc929d
commit 45420b6f0d
39760 changed files with 4303286 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
<?php
/**
* Contains all annotations for extensions
* NOTE: should be included with require_once
*
* @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
foreach (glob(__DIR__ . "/*.php") as $filename) {
if (basename($filename, '.php') === 'All') {
continue;
}
include_once $filename;
}

View File

@@ -0,0 +1,24 @@
<?php
namespace Gedmo\Mapping\Annotation;
use Doctrine\Common\Annotations\Annotation;
/**
* Blameable annotation for Blameable behavioral extension
*
* @Annotation
* @Target("PROPERTY")
*
* @author David Buchmann <mail@davidbu.ch>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
final class Blameable extends Annotation
{
/** @var string */
public $on = 'update';
/** @var string|array */
public $field;
/** @var mixed */
public $value;
}

View File

@@ -0,0 +1,24 @@
<?php
namespace Gedmo\Mapping\Annotation;
use Doctrine\Common\Annotations\Annotation;
/**
* IpTraceable annotation for IpTraceable behavioral extension
*
* @Annotation
* @Target("PROPERTY")
*
* @author Pierre-Charles Bertineau <pc.bertineau@alterphp.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
final class IpTraceable extends Annotation
{
/** @var string */
public $on = 'update';
/** @var string|array */
public $field;
/** @var mixed */
public $value;
}

View File

@@ -0,0 +1,18 @@
<?php
namespace Gedmo\Mapping\Annotation;
use Doctrine\Common\Annotations\Annotation;
/**
* Language annotation for Translatable behavioral extension
*
* @Annotation
* @Target("PROPERTY")
*
* @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
final class Language extends Annotation
{
}

View File

@@ -0,0 +1,18 @@
<?php
namespace Gedmo\Mapping\Annotation;
use Doctrine\Common\Annotations\Annotation;
/**
* Locale annotation for Translatable behavioral extension
*
* @Annotation
* @Target("PROPERTY")
*
* @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
final class Locale extends Annotation
{
}

View File

@@ -0,0 +1,20 @@
<?php
namespace Gedmo\Mapping\Annotation;
use Doctrine\Common\Annotations\Annotation;
/**
* Loggable annotation for Loggable behavioral extension
*
* @Annotation
* @Target("CLASS")
*
* @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
final class Loggable extends Annotation
{
/** @var string */
public $logEntryClass;
}

View File

@@ -0,0 +1,22 @@
<?php
namespace Gedmo\Mapping\Annotation;
use Doctrine\Common\Annotations\Annotation;
/**
* Reference annotation for ORM -> ODM references extension
* to be user like "@ReferenceMany(type="entity", class="MyEntity", identifier="entity_id")"
*
* @author Bulat Shakirzyanov <mallluhuct@gmail.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
* @Annotation
*/
abstract class Reference extends Annotation
{
public $type;
public $class;
public $identifier;
public $mappedBy;
public $inversedBy;
}

View File

@@ -0,0 +1,18 @@
<?php
namespace Gedmo\Mapping\Annotation;
use Doctrine\Common\Annotations\Annotation;
/**
* ReferenceIntegrity annotation for ReferenceIntegrity behavioral extension
*
* @Annotation
* @Target("PROPERTY")
*
* @author Evert Harmeling <evert.harmeling@freshheads.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
final class ReferenceIntegrity extends Annotation
{
}

View File

@@ -0,0 +1,15 @@
<?php
namespace Gedmo\Mapping\Annotation;
/**
* Reference annotation for ORM -> ODM references extension
* to be user like "@ReferenceMany(type="entity", class="MyEntity", identifier="entity_id")"
*
* @author Bulat Shakirzyanov <mallluhuct@gmail.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
* @Annotation
*/
class ReferenceMany extends Reference
{
}

View File

@@ -0,0 +1,10 @@
<?php
namespace Gedmo\Mapping\Annotation;
/**
* @Annotation
*/
class ReferenceManyEmbed extends Reference
{
}

View File

@@ -0,0 +1,15 @@
<?php
namespace Gedmo\Mapping\Annotation;
/**
* Reference annotation for ORM -> ODM references extension
* to be user like "@ReferenceOne(type="entity", class="MyEntity", identifier="entity_id")"
*
* @author Bulat Shakirzyanov <mallluhuct@gmail.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
* @Annotation
*/
class ReferenceOne extends Reference
{
}

View File

@@ -0,0 +1,38 @@
<?php
namespace Gedmo\Mapping\Annotation;
use Doctrine\Common\Annotations\Annotation;
/**
* Slug annotation for Sluggable behavioral extension
*
* @Annotation
* @Target("PROPERTY")
*
* @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
final class Slug extends Annotation
{
/** @var array<string> @Required */
public $fields = array();
/** @var boolean */
public $updatable = true;
/** @var string */
public $style = 'default'; // or "camel"
/** @var boolean */
public $unique = true;
/** @var string */
public $unique_base = null;
/** @var string */
public $separator = '-';
/** @var string */
public $prefix = '';
/** @var string */
public $suffix = '';
/** @var array<Gedmo\Mapping\Annotation\SlugHandler> */
public $handlers = array();
/** @var string */
public $dateFormat = 'Y-m-d-H:i';
}

View File

@@ -0,0 +1,19 @@
<?php
namespace Gedmo\Mapping\Annotation;
use Doctrine\Common\Annotations\Annotation;
/**
* SlugHandler annotation for Sluggable behavioral extension
*
* @Annotation
*
* @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
final class SlugHandler extends Annotation
{
public $class = '';
public $options = array();
}

View File

@@ -0,0 +1,19 @@
<?php
namespace Gedmo\Mapping\Annotation;
use Doctrine\Common\Annotations\Annotation;
/**
* SlugHandlerOption annotation for Sluggable behavioral extension
*
* @Annotation
*
* @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
final class SlugHandlerOption extends Annotation
{
public $name;
public $value;
}

View File

@@ -0,0 +1,26 @@
<?php
namespace Gedmo\Mapping\Annotation;
use Doctrine\Common\Annotations\Annotation;
/**
* Group annotation for SoftDeleteable extension
*
* @author Gustavo Falco <comfortablynumb84@gmail.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*
* @Annotation
* @Target("CLASS")
*/
final class SoftDeleteable extends Annotation
{
/** @var string */
public $fieldName = 'deletedAt';
/** @var bool */
public $timeAware = false;
/** @var bool */
public $hardDelete = true;
}

View File

@@ -0,0 +1,18 @@
<?php
namespace Gedmo\Mapping\Annotation;
use Doctrine\Common\Annotations\Annotation;
/**
* Group annotation for Sortable extension
*
* @author Lukas Botsch <lukas.botsch@gmail.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*
* @Annotation
* @Target("PROPERTY")
*/
final class SortableGroup extends Annotation
{
}

View File

@@ -0,0 +1,18 @@
<?php
namespace Gedmo\Mapping\Annotation;
use Doctrine\Common\Annotations\Annotation;
/**
* Position annotation for Sortable extension
*
* @author Lukas Botsch <lukas.botsch@gmail.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*
* @Annotation
* @Target("PROPERTY")
*/
final class SortablePosition extends Annotation
{
}

View File

@@ -0,0 +1,24 @@
<?php
namespace Gedmo\Mapping\Annotation;
use Doctrine\Common\Annotations\Annotation;
/**
* Timestampable annotation for Timestampable behavioral extension
*
* @Annotation
* @Target("PROPERTY")
*
* @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
final class Timestampable extends Annotation
{
/** @var string */
public $on = 'update';
/** @var string|array */
public $field;
/** @var mixed */
public $value;
}

View File

@@ -0,0 +1,20 @@
<?php
namespace Gedmo\Mapping\Annotation;
use Doctrine\Common\Annotations\Annotation;
/**
* Translatable annotation for Translatable behavioral extension
*
* @Annotation
* @Target("PROPERTY")
*
* @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
final class Translatable extends Annotation
{
/** @var boolean */
public $fallback;
}

View File

@@ -0,0 +1,20 @@
<?php
namespace Gedmo\Mapping\Annotation;
use Doctrine\Common\Annotations\Annotation;
/**
* TranslationEntity annotation for Translatable behavioral extension
*
* @Annotation
* @Target("CLASS")
*
* @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
final class TranslationEntity extends Annotation
{
/** @var string @Required */
public $class;
}

View File

@@ -0,0 +1,29 @@
<?php
namespace Gedmo\Mapping\Annotation;
use Doctrine\Common\Annotations\Annotation;
/**
* Tree annotation for Tree behavioral extension
*
* @Annotation
* @Target("CLASS")
*
* @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
final class Tree extends Annotation
{
/** @var string */
public $type = 'nested';
/** @var string */
public $activateLocking = false;
/** @var integer */
public $lockingTimeout = 3;
/** @var string $identifierMethod */
public $identifierMethod;
}

View File

@@ -0,0 +1,20 @@
<?php
namespace Gedmo\Mapping\Annotation;
use Doctrine\Common\Annotations\Annotation;
/**
* TreeClosure annotation for Tree behavioral extension
*
* @Annotation
* @Target("CLASS")
*
* @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
final class TreeClosure extends Annotation
{
/** @var string @Required */
public $class;
}

View File

@@ -0,0 +1,18 @@
<?php
namespace Gedmo\Mapping\Annotation;
use Doctrine\Common\Annotations\Annotation;
/**
* TreeLeft annotation for Tree behavioral extension
*
* @Annotation
* @Target("PROPERTY")
*
* @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
final class TreeLeft extends Annotation
{
}

View File

@@ -0,0 +1,18 @@
<?php
namespace Gedmo\Mapping\Annotation;
use Doctrine\Common\Annotations\Annotation;
/**
* TreeLevel annotation for Tree behavioral extension
*
* @Annotation
* @Target("PROPERTY")
*
* @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
final class TreeLevel extends Annotation
{
}

View File

@@ -0,0 +1,19 @@
<?php
namespace Gedmo\Mapping\Annotation;
use Doctrine\Common\Annotations\Annotation;
/**
* TreeLockTime annotation for Tree behavioral extension
*
* @Annotation
* @Target("PROPERTY")
*
* @author Gustavo Falco <comfortablynumb84@gmail.com>
* @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
final class TreeLockTime extends Annotation
{
}

View File

@@ -0,0 +1,18 @@
<?php
namespace Gedmo\Mapping\Annotation;
use Doctrine\Common\Annotations\Annotation;
/**
* TreeParent annotation for Tree behavioral extension
*
* @Annotation
* @Target("PROPERTY")
*
* @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
final class TreeParent extends Annotation
{
}

View File

@@ -0,0 +1,27 @@
<?php
namespace Gedmo\Mapping\Annotation;
use Doctrine\Common\Annotations\Annotation;
/**
* TreePath annotation for Tree behavioral extension
*
* @Annotation
* @Target("PROPERTY")
*
* @author Gustavo Falco <comfortablynumb84@gmail.com>
* @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
* @author <rocco@roccosportal.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
final class TreePath extends Annotation
{
public $separator = ',';
public $appendId = null;
public $startsWithSeparator = false;
public $endsWithSeparator = true;
}

View File

@@ -0,0 +1,18 @@
<?php
namespace Gedmo\Mapping\Annotation;
use Doctrine\Common\Annotations\Annotation;
/**
* TreePath annotation for Tree behavioral extension
*
* @Annotation
* @Target("PROPERTY")
*
* @author <rocco@roccosportal.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
final class TreePathHash extends Annotation
{
}

View File

@@ -0,0 +1,19 @@
<?php
namespace Gedmo\Mapping\Annotation;
use Doctrine\Common\Annotations\Annotation;
/**
* TreePath annotation for Tree behavioral extension
*
* @Annotation
* @Target("PROPERTY")
*
* @author Gustavo Falco <comfortablynumb84@gmail.com>
* @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
final class TreePathSource extends Annotation
{
}

View File

@@ -0,0 +1,18 @@
<?php
namespace Gedmo\Mapping\Annotation;
use Doctrine\Common\Annotations\Annotation;
/**
* TreeRight annotation for Tree behavioral extension
*
* @Annotation
* @Target("PROPERTY")
*
* @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
final class TreeRight extends Annotation
{
}

View File

@@ -0,0 +1,20 @@
<?php
namespace Gedmo\Mapping\Annotation;
use Doctrine\Common\Annotations\Annotation;
/**
* TreeRoot annotation for Tree behavioral extension
*
* @Annotation
* @Target("PROPERTY")
*
* @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
final class TreeRoot extends Annotation
{
/** @var string $identifierMethod */
public $identifierMethod;
}

View File

@@ -0,0 +1,46 @@
<?php
namespace Gedmo\Mapping\Annotation;
use Doctrine\Common\Annotations\Annotation;
use Gedmo\Uploadable\Mapping\Validator;
/**
* Uploadable annotation for Uploadable behavioral extension
*
* @Annotation
* @Target("CLASS")
*
* @author Gustavo Falco <comfortablynumb84@gmail.com>
* @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
final class Uploadable extends Annotation
{
/** @var boolean */
public $allowOverwrite = false;
/** @var boolean */
public $appendNumber = false;
/** @var string */
public $path = '';
/** @var string */
public $pathMethod = '';
/** @var string */
public $callback = '';
/** @var string */
public $filenameGenerator = Validator::FILENAME_GENERATOR_NONE;
/** @var double */
public $maxSize = 0;
/** @var array */
public $allowedTypes = '';
/** @var array */
public $disallowedTypes = '';
}

View File

@@ -0,0 +1,19 @@
<?php
namespace Gedmo\Mapping\Annotation;
use Doctrine\Common\Annotations\Annotation;
/**
* UploadableFileMimeType Annotation for Uploadable behavioral extension
*
* @Annotation
* @Target("PROPERTY")
*
* @author Gustavo Falco <comfortablynumb84@gmail.com>
* @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
final class UploadableFileMimeType extends Annotation
{
}

View File

@@ -0,0 +1,18 @@
<?php
namespace Gedmo\Mapping\Annotation;
use Doctrine\Common\Annotations\Annotation;
/**
* UploadableFileName Annotation for Uploadable behavioral extension
*
* @Annotation
* @Target("PROPERTY")
*
* @author tiger-seo <tiger.seo@gmail.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
final class UploadableFileName extends Annotation
{
}

View File

@@ -0,0 +1,19 @@
<?php
namespace Gedmo\Mapping\Annotation;
use Doctrine\Common\Annotations\Annotation;
/**
* UploadableFilePath Annotation for Uploadable behavioral extension
*
* @Annotation
* @Target("PROPERTY")
*
* @author Gustavo Falco <comfortablynumb84@gmail.com>
* @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
final class UploadableFilePath extends Annotation
{
}

View File

@@ -0,0 +1,19 @@
<?php
namespace Gedmo\Mapping\Annotation;
use Doctrine\Common\Annotations\Annotation;
/**
* UploadableFileSize Annotation for Uploadable behavioral extension
*
* @Annotation
* @Target("PROPERTY")
*
* @author Gustavo Falco <comfortablynumb84@gmail.com>
* @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
final class UploadableFileSize extends Annotation
{
}

View File

@@ -0,0 +1,18 @@
<?php
namespace Gedmo\Mapping\Annotation;
use Doctrine\Common\Annotations\Annotation;
/**
* Versioned annotation for Loggable behavioral extension
*
* @Annotation
* @Target("PROPERTY")
*
* @author Gediminas Morkevicius <gediminas.morkevicius@gmail.com>
* @license MIT License (http://www.opensource.org/licenses/mit-license.php)
*/
final class Versioned extends Annotation
{
}