Files
Phraseanet/lib/Doctrine/Proxies/__CG__EntitiesFtpCredential.php
2013-08-27 12:12:49 +02:00

214 lines
5.1 KiB
PHP

<?php
namespace Proxies\__CG__\Entities;
/**
* THIS CLASS WAS GENERATED BY THE DOCTRINE ORM. DO NOT EDIT THIS FILE.
*/
class FtpCredential extends \Entities\FtpCredential implements \Doctrine\ORM\Proxy\Proxy
{
private $_entityPersister;
private $_identifier;
public $__isInitialized__ = false;
public function __construct($entityPersister, $identifier)
{
$this->_entityPersister = $entityPersister;
$this->_identifier = $identifier;
}
/** @private */
public function __load()
{
if (!$this->__isInitialized__ && $this->_entityPersister) {
$this->__isInitialized__ = true;
if (method_exists($this, "__wakeup")) {
// call this after __isInitialized__to avoid infinite recursion
// but before loading to emulate what ClassMetadata::newInstance()
// provides.
$this->__wakeup();
}
if ($this->_entityPersister->load($this->_identifier, $this) === null) {
throw new \Doctrine\ORM\EntityNotFoundException();
}
unset($this->_entityPersister, $this->_identifier);
}
}
/** @private */
public function __isInitialized()
{
return $this->__isInitialized__;
}
public function getId()
{
if ($this->__isInitialized__ === false) {
return (int) $this->_identifier["id"];
}
$this->__load();
return parent::getId();
}
public function getUser(\Alchemy\Phrasea\Application $app)
{
$this->__load();
return parent::getUser($app);
}
public function getUsrId()
{
$this->__load();
return parent::getUsrId();
}
public function setUsrId($usrId)
{
$this->__load();
return parent::setUsrId($usrId);
}
public function isActive()
{
$this->__load();
return parent::isActive();
}
public function setActive($active)
{
$this->__load();
return parent::setActive($active);
}
public function getAddress()
{
$this->__load();
return parent::getAddress();
}
public function setAddress($address)
{
$this->__load();
return parent::setAddress($address);
}
public function getLogin()
{
$this->__load();
return parent::getLogin();
}
public function setLogin($login)
{
$this->__load();
return parent::setLogin($login);
}
public function getPassword()
{
$this->__load();
return parent::getPassword();
}
public function setPassword($password)
{
$this->__load();
return parent::setPassword($password);
}
public function getReceptionFolder()
{
$this->__load();
return parent::getReceptionFolder();
}
public function setReceptionFolder($receptionFolder)
{
$this->__load();
return parent::setReceptionFolder($receptionFolder);
}
public function getRepositoryPrefixName()
{
$this->__load();
return parent::getRepositoryPrefixName();
}
public function setRepositoryPrefixName($repositoryPrefixName)
{
$this->__load();
return parent::setRepositoryPrefixName($repositoryPrefixName);
}
public function isPassive()
{
$this->__load();
return parent::isPassive();
}
public function setPassive($passive)
{
$this->__load();
return parent::setPassive($passive);
}
public function isSsl()
{
$this->__load();
return parent::isSsl();
}
public function setSsl($ssl)
{
$this->__load();
return parent::setSsl($ssl);
}
public function getMaxRetry()
{
$this->__load();
return parent::getMaxRetry();
}
public function setMaxRetry($maxRetry)
{
$this->__load();
return parent::setMaxRetry($maxRetry);
}
public function getUpdated()
{
$this->__load();
return parent::getUpdated();
}
public function setUpdated(\DateTime $updated)
{
$this->__load();
return parent::setUpdated($updated);
}
public function __sleep()
{
return array('__isInitialized__', 'id', 'usrId', 'active', 'address', 'login', 'password', 'receptionFolder', 'repositoryPrefixName', 'passive', 'ssl', 'maxRetry', 'updated');
}
public function __clone()
{
if (!$this->__isInitialized__ && $this->_entityPersister) {
$this->__isInitialized__ = true;
$class = $this->_entityPersister->getClassMetadata();
$original = $this->_entityPersister->load($this->_identifier);
if ($original === null) {
throw new \Doctrine\ORM\EntityNotFoundException();
}
foreach ($class->reflFields as $field => $reflProperty) {
$reflProperty->setValue($this, $reflProperty->getValue($original));
}
unset($this->_entityPersister, $this->_identifier);
}
}
}