Bug #13576 » F3_Blog_Domain_Model_Blog.php

Karsten Dambekalns, 2011-03-03 13:47

 
1
<?php
2
declare(ENCODING = 'utf-8');
3
namespace F3\Blog\Domain\Model;
4

    
5
/**
6
 * Autogenerated Proxy Class
7
 * @scope prototype
8
 * @entity 
9
 */
10
class Blog extends Blog_Original implements \F3\FLOW3\Object\Proxy\ProxyInterface, \F3\FLOW3\Persistence\Generic\Aspect\PersistenceMagicInterface {
11
	private $FLOW3_AOP_Proxy_targetMethodsAndGroupedAdvices = array();
12

    
13
	private $FLOW3_AOP_Proxy_groupedAdviceChains = array();
14

    
15
	private $FLOW3_AOP_Proxy_methodIsInAdviceMode = array();
16

    
17

    
18
	/**
19
	 * Autogenerated Proxy Method
20
	 */
21
	public function __construct() {
22

    
23
		$objectManager = \F3\FLOW3\Core\Bootstrap::$staticObjectManager;
24
		$this->FLOW3_AOP_Proxy_targetMethodsAndGroupedAdvices = array(
25
			'__construct' => array(
26
				'F3\FLOW3\AOP\Advice\AfterReturningAdvice' => array(
27
					new \F3\FLOW3\AOP\Advice\AfterReturningAdvice('F3\FLOW3\Persistence\Generic\Aspect\PersistenceMagicAspect', 'generateUUID', $objectManager, NULL),
28
				),
29
			),
30
			'FLOW3_Persistence_isClone' => array(
31
				'F3\FLOW3\AOP\Advice\AroundAdvice' => array(
32
					new \F3\FLOW3\AOP\Advice\AroundAdvice('F3\FLOW3\Persistence\Generic\Aspect\PersistenceMagicAspect', 'isClone', $objectManager, NULL),
33
				),
34
			),
35
			'__clone' => array(
36
				'F3\FLOW3\AOP\Advice\AfterReturningAdvice' => array(
37
					new \F3\FLOW3\AOP\Advice\AfterReturningAdvice('F3\FLOW3\Persistence\Generic\Aspect\PersistenceMagicAspect', 'cloneObject', $objectManager, NULL),
38
				),
39
			),
40
		);
41

    
42
		if (isset($this->FLOW3_AOP_Proxy_methodIsInAdviceMode['__construct'])) {
43
		parent::__construct();
44

    
45
		} else {
46
			$this->FLOW3_AOP_Proxy_methodIsInAdviceMode['__construct'] = TRUE;
47
			try {
48
			
49
			$methodArguments = array();
50

    
51
			$joinPoint = new \F3\FLOW3\AOP\JoinPoint($this, 'F3\Blog\Domain\Model\Blog', '__construct', $methodArguments);
52
			$result = $this->FLOW3_AOP_Proxy_invokeJoinPoint($joinPoint);
53

    
54
			$advices = $this->FLOW3_AOP_Proxy_targetMethodsAndGroupedAdvices['__construct']['F3\FLOW3\AOP\Advice\AfterReturningAdvice'];
55
			$joinPoint = new \F3\FLOW3\AOP\JoinPoint($this, 'F3\Blog\Domain\Model\Blog', '__construct', $methodArguments, NULL, $result);
56
			foreach ($advices as $advice) {
57
				$advice->invoke($joinPoint);
58
			}
59

    
60
			} catch(\Exception $e) {
61
				unset($this->FLOW3_AOP_Proxy_methodIsInAdviceMode['__construct']);
62
				throw $e;
63
			}
64
			unset($this->FLOW3_AOP_Proxy_methodIsInAdviceMode['__construct']);
65
		}
66
	}
67

    
68
	/**
69
	 * Autogenerated Proxy Method
70
	 */
71
	public function FLOW3_AOP_Proxy_getAdviceChains($methodName) {
72
		$adviceChains = NULL;
73
		if (is_array($this->FLOW3_AOP_Proxy_groupedAdviceChains)) {
74
			if (isset($this->FLOW3_AOP_Proxy_groupedAdviceChains[$methodName])) {
75
				$adviceChains = $this->FLOW3_AOP_Proxy_groupedAdviceChains[$methodName];
76
			} else {
77
				if (isset($this->FLOW3_AOP_Proxy_targetMethodsAndGroupedAdvices[$methodName])) {
78
					$groupedAdvices = $this->FLOW3_AOP_Proxy_targetMethodsAndGroupedAdvices[$methodName];
79
					if (isset($groupedAdvices['F3\FLOW3\AOP\Advice\AroundAdvice'])) {
80
						$this->FLOW3_AOP_Proxy_groupedAdviceChains[$methodName]['F3\FLOW3\AOP\Advice\AroundAdvice'] = new \F3\FLOW3\AOP\Advice\AdviceChain($groupedAdvices['F3\FLOW3\AOP\Advice\AroundAdvice'], $this);
81
						$adviceChains = $this->FLOW3_AOP_Proxy_groupedAdviceChains[$methodName];
82
					}
83
				}
84
			}
85
		}
86
		return $adviceChains;
87
	}
88

    
89
	/**
90
	 * Autogenerated Proxy Method
91
	 */
92
	public function FLOW3_AOP_Proxy_invokeJoinPoint(\F3\FLOW3\AOP\JoinPointInterface $joinPoint) {
93
		if (isset($this->FLOW3_AOP_Proxy_methodIsInAdviceMode[$joinPoint->getMethodName()])) {
94
			return call_user_func_array(array($this, $joinPoint->getMethodName()), $joinPoint->getMethodArguments());
95
		}
96
	}
97

    
98
	/**
99
	 * Autogenerated Proxy Method
100
	 */
101
	public function FLOW3_AOP_Proxy_getProperty($name) {
102
		return $this->$name;
103
	}
104

    
105
	/**
106
	 * Autogenerated Proxy Method
107
	 */
108
	public function FLOW3_AOP_Proxy_setProperty($name, $value) {
109
		$this->$name = $value;
110
	}
111

    
112
	/**
113
	 * Autogenerated Proxy Method
114
	 */
115
	public function FLOW3_Persistence_isClone() {
116

    
117
		if (isset($this->FLOW3_AOP_Proxy_methodIsInAdviceMode['FLOW3_Persistence_isClone'])) {
118
		$result = NULL;
119

    
120
		} else {
121
			$this->FLOW3_AOP_Proxy_methodIsInAdviceMode['FLOW3_Persistence_isClone'] = TRUE;
122
			try {
123
			
124
			$methodArguments = array();
125

    
126
			$adviceChains = $this->FLOW3_AOP_Proxy_getAdviceChains('FLOW3_Persistence_isClone');
127
			$adviceChain = $adviceChains['F3\FLOW3\AOP\Advice\AroundAdvice'];
128
			$adviceChain->rewind();
129
			$result = $adviceChain->proceed(new \F3\FLOW3\AOP\JoinPoint($this, 'F3\Blog\Domain\Model\Blog', 'FLOW3_Persistence_isClone', $methodArguments, $adviceChain));
130

    
131
			} catch(\Exception $e) {
132
				unset($this->FLOW3_AOP_Proxy_methodIsInAdviceMode['FLOW3_Persistence_isClone']);
133
				throw $e;
134
			}
135
			unset($this->FLOW3_AOP_Proxy_methodIsInAdviceMode['FLOW3_Persistence_isClone']);
136
		}
137
		return $result;
138
	}
139

    
140
	/**
141
	 * Autogenerated Proxy Method
142
	 */
143
	public function __clone() {
144

    
145
		if (isset($this->FLOW3_AOP_Proxy_methodIsInAdviceMode['__clone'])) {
146
		$result = NULL;
147

    
148
		} else {
149
			$this->FLOW3_AOP_Proxy_methodIsInAdviceMode['__clone'] = TRUE;
150
			try {
151
			
152
			$methodArguments = array();
153

    
154
			$joinPoint = new \F3\FLOW3\AOP\JoinPoint($this, 'F3\Blog\Domain\Model\Blog', '__clone', $methodArguments);
155
			$result = $this->FLOW3_AOP_Proxy_invokeJoinPoint($joinPoint);
156

    
157
			$advices = $this->FLOW3_AOP_Proxy_targetMethodsAndGroupedAdvices['__clone']['F3\FLOW3\AOP\Advice\AfterReturningAdvice'];
158
			$joinPoint = new \F3\FLOW3\AOP\JoinPoint($this, 'F3\Blog\Domain\Model\Blog', '__clone', $methodArguments, NULL, $result);
159
			foreach ($advices as $advice) {
160
				$advice->invoke($joinPoint);
161
			}
162

    
163
			} catch(\Exception $e) {
164
				unset($this->FLOW3_AOP_Proxy_methodIsInAdviceMode['__clone']);
165
				throw $e;
166
			}
167
			unset($this->FLOW3_AOP_Proxy_methodIsInAdviceMode['__clone']);
168
		}
169
		return $result;
170
	}
171
}
172
#0             5794      
(2-2/2)