Skip to content

Commit

Permalink
demo: updated class definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
brusch committed Nov 17, 2015
1 parent 42b8d17 commit 6ddea7c
Show file tree
Hide file tree
Showing 14 changed files with 114 additions and 42 deletions.
32 changes: 23 additions & 9 deletions website_demo/var/classes/Object/BlogArticle.php
@@ -1,18 +1,26 @@
<?php

/** Generated at 2014-10-21T11:07:04+02:00 */
/** Generated at 2015-11-17T06:52:52+01:00 */

/**
* Inheritance: no
* Variants : no
* IP: 192.168.11.104
* Changed by : admin (37)
* IP: 192.168.11.33
*/


namespace Pimcore\Model\Object;



/**
* @method static \Pimcore\Model\Object\BlogArticle getByLocalizedfields ($value, $limit = 0)
* @method static \Pimcore\Model\Object\BlogArticle getByDate ($value, $limit = 0)
* @method static \Pimcore\Model\Object\BlogArticle getByCategories ($value, $limit = 0)
* @method static \Pimcore\Model\Object\BlogArticle getByPosterImage ($value, $limit = 0)
*/

class BlogArticle extends Concrete {

public $o_classId = 5;
Expand Down Expand Up @@ -53,7 +61,9 @@ public function getLocalizedfields () {
public function getTitle ($language = null) {
$data = $this->getLocalizedfields()->getLocalizedValue("title", $language);
$preValue = $this->preGetValue("title");
if($preValue !== null && !\Pimcore::inAdmin()) { return $preValue;}
if($preValue !== null && !\Pimcore::inAdmin()) {
return $preValue;
}
return $data;
}

Expand All @@ -64,7 +74,9 @@ public function getTitle ($language = null) {
public function getText ($language = null) {
$data = $this->getLocalizedfields()->getLocalizedValue("text", $language);
$preValue = $this->preGetValue("text");
if($preValue !== null && !\Pimcore::inAdmin()) { return $preValue;}
if($preValue !== null && !\Pimcore::inAdmin()) {
return $preValue;
}
return $data;
}

Expand All @@ -75,7 +87,9 @@ public function getText ($language = null) {
public function getTags ($language = null) {
$data = $this->getLocalizedfields()->getLocalizedValue("tags", $language);
$preValue = $this->preGetValue("tags");
if($preValue !== null && !\Pimcore::inAdmin()) { return $preValue;}
if($preValue !== null && !\Pimcore::inAdmin()) {
return $preValue;
}
return $data;
}

Expand Down Expand Up @@ -121,7 +135,7 @@ public function setTags ($tags, $language = null) {

/**
* Get date - Date
* @return Zend_Date
* @return \Pimcore\Date
*/
public function getDate () {
$preValue = $this->preGetValue("date");
Expand All @@ -134,7 +148,7 @@ public function getDate () {

/**
* Set date - Date
* @param Zend_Date $date
* @param \Pimcore\Date $date
* @return \Pimcore\Model\Object\BlogArticle
*/
public function setDate ($date) {
Expand Down Expand Up @@ -167,7 +181,7 @@ public function setCategories ($categories) {

/**
* Get posterImage - Poster Image
* @return Object_Data_Hotspotimage
* @return \Pimcore\Model\Object\Data\Hotspotimage
*/
public function getPosterImage () {
$preValue = $this->preGetValue("posterImage");
Expand All @@ -180,7 +194,7 @@ public function getPosterImage () {

/**
* Set posterImage - Poster Image
* @param Object_Data_Hotspotimage $posterImage
* @param \Pimcore\Model\Object\Data\Hotspotimage $posterImage
* @return \Pimcore\Model\Object\BlogArticle
*/
public function setPosterImage ($posterImage) {
Expand Down
4 changes: 4 additions & 0 deletions website_demo/var/classes/Object/BlogArticle/Listing.php
Expand Up @@ -4,6 +4,10 @@

use Pimcore\Model\Object;

/**
* @method Object\BlogArticle current()
*/

class Listing extends Object\Listing\Concrete {

public $classId = 5;
Expand Down
13 changes: 10 additions & 3 deletions website_demo/var/classes/Object/BlogCategory.php
@@ -1,18 +1,23 @@
<?php

/** Generated at 2014-10-21T11:07:05+02:00 */
/** Generated at 2015-11-17T06:57:25+01:00 */

/**
* Inheritance: no
* Variants : no
* IP: 192.168.11.104
* Changed by : admin (37)
* IP: 192.168.11.33
*/


namespace Pimcore\Model\Object;



/**
* @method static \Pimcore\Model\Object\BlogCategory getByLocalizedfields ($value, $limit = 0)
*/

class BlogCategory extends Concrete {

public $o_classId = 6;
Expand Down Expand Up @@ -50,7 +55,9 @@ public function getLocalizedfields () {
public function getName ($language = null) {
$data = $this->getLocalizedfields()->getLocalizedValue("name", $language);
$preValue = $this->preGetValue("name");
if($preValue !== null && !\Pimcore::inAdmin()) { return $preValue;}
if($preValue !== null && !\Pimcore::inAdmin()) {
return $preValue;
}
return $data;
}

Expand Down
4 changes: 4 additions & 0 deletions website_demo/var/classes/Object/BlogCategory/Listing.php
Expand Up @@ -4,6 +4,10 @@

use Pimcore\Model\Object;

/**
* @method Object\BlogCategory current()
*/

class Listing extends Object\Listing\Concrete {

public $classId = 6;
Expand Down
21 changes: 14 additions & 7 deletions website_demo/var/classes/Object/Inquiry.php
@@ -1,19 +1,26 @@
<?php

/** Generated at 2014-10-21T11:07:05+02:00 */
/** Generated at 2015-11-17T06:56:34+01:00 */

/**
* Inheritance: no
* Variants : no
* Changed by : system (0)
* IP: 192.168.11.104
* Changed by : admin (37)
* IP: 192.168.11.33
*/


namespace Pimcore\Model\Object;



/**
* @method static \Pimcore\Model\Object\Inquiry getByDate ($value, $limit = 0)
* @method static \Pimcore\Model\Object\Inquiry getByPerson ($value, $limit = 0)
* @method static \Pimcore\Model\Object\Inquiry getByMessage ($value, $limit = 0)
* @method static \Pimcore\Model\Object\Inquiry getByTerms ($value, $limit = 0)
*/

class Inquiry extends Concrete {

public $o_classId = 3;
Expand All @@ -36,7 +43,7 @@ public static function create($values = array()) {

/**
* Get date - Date
* @return Zend_Date
* @return \Pimcore\Date
*/
public function getDate () {
$preValue = $this->preGetValue("date");
Expand All @@ -49,7 +56,7 @@ public function getDate () {

/**
* Set date - Date
* @param Zend_Date $date
* @param \Pimcore\Date $date
* @return \Pimcore\Model\Object\Inquiry
*/
public function setDate ($date) {
Expand All @@ -59,7 +66,7 @@ public function setDate ($date) {

/**
* Get person - Person
* @return Document_Page | Document_Snippet | Document | Asset | Object_Abstract
* @return \Pimcore\Model\Document\Page | \Pimcore\Model\Document\Snippet | \Pimcore\Model\Document | \Pimcore\Model\Asset | \Pimcore\Model\Object\AbstractObject
*/
public function getPerson () {
$preValue = $this->preGetValue("person");
Expand All @@ -72,7 +79,7 @@ public function getPerson () {

/**
* Set person - Person
* @param Document_Page | Document_Snippet | Document | Asset | Object_Abstract $person
* @param \Pimcore\Model\Document\Page | \Pimcore\Model\Document\Snippet | \Pimcore\Model\Document | \Pimcore\Model\Asset | \Pimcore\Model\Object\AbstractObject $person
* @return \Pimcore\Model\Object\Inquiry
*/
public function setPerson ($person) {
Expand Down
4 changes: 4 additions & 0 deletions website_demo/var/classes/Object/Inquiry/Listing.php
Expand Up @@ -4,6 +4,10 @@

use Pimcore\Model\Object;

/**
* @method Object\Inquiry current()
*/

class Listing extends Object\Listing\Concrete {

public $classId = 3;
Expand Down
42 changes: 28 additions & 14 deletions website_demo/var/classes/Object/News.php
@@ -1,19 +1,27 @@
<?php

/** Generated at 2014-10-21T11:07:05+02:00 */
/** Generated at 2015-11-17T06:56:39+01:00 */

/**
* Inheritance: no
* Variants : no
* Changed by : system (0)
* IP: 192.168.11.104
* Changed by : admin (37)
* IP: 192.168.11.33
*/


namespace Pimcore\Model\Object;



/**
* @method static \Pimcore\Model\Object\News getByLocalizedfields ($value, $limit = 0)
* @method static \Pimcore\Model\Object\News getByDate ($value, $limit = 0)
* @method static \Pimcore\Model\Object\News getByImage_1 ($value, $limit = 0)
* @method static \Pimcore\Model\Object\News getByImage_2 ($value, $limit = 0)
* @method static \Pimcore\Model\Object\News getByImage_3 ($value, $limit = 0)
*/

class News extends Concrete {

public $o_classId = 2;
Expand Down Expand Up @@ -55,7 +63,9 @@ public function getLocalizedfields () {
public function getTitle ($language = null) {
$data = $this->getLocalizedfields()->getLocalizedValue("title", $language);
$preValue = $this->preGetValue("title");
if($preValue !== null && !\Pimcore::inAdmin()) { return $preValue;}
if($preValue !== null && !\Pimcore::inAdmin()) {
return $preValue;
}
return $data;
}

Expand All @@ -66,7 +76,9 @@ public function getTitle ($language = null) {
public function getShortText ($language = null) {
$data = $this->getLocalizedfields()->getLocalizedValue("shortText", $language);
$preValue = $this->preGetValue("shortText");
if($preValue !== null && !\Pimcore::inAdmin()) { return $preValue;}
if($preValue !== null && !\Pimcore::inAdmin()) {
return $preValue;
}
return $data;
}

Expand All @@ -77,7 +89,9 @@ public function getShortText ($language = null) {
public function getText ($language = null) {
$data = $this->getLocalizedfields()->getLocalizedValue("text", $language);
$preValue = $this->preGetValue("text");
if($preValue !== null && !\Pimcore::inAdmin()) { return $preValue;}
if($preValue !== null && !\Pimcore::inAdmin()) {
return $preValue;
}
return $data;
}

Expand Down Expand Up @@ -123,7 +137,7 @@ public function setText ($text, $language = null) {

/**
* Get date - Date
* @return Zend_Date
* @return \Pimcore\Date
*/
public function getDate () {
$preValue = $this->preGetValue("date");
Expand All @@ -136,7 +150,7 @@ public function getDate () {

/**
* Set date - Date
* @param Zend_Date $date
* @param \Pimcore\Date $date
* @return \Pimcore\Model\Object\News
*/
public function setDate ($date) {
Expand All @@ -146,7 +160,7 @@ public function setDate ($date) {

/**
* Get image_1 - Image
* @return Asset_Image
* @return \Pimcore\Model\Asset\Image
*/
public function getImage_1 () {
$preValue = $this->preGetValue("image_1");
Expand All @@ -159,7 +173,7 @@ public function getImage_1 () {

/**
* Set image_1 - Image
* @param Asset_Image $image_1
* @param \Pimcore\Model\Asset\Image $image_1
* @return \Pimcore\Model\Object\News
*/
public function setImage_1 ($image_1) {
Expand All @@ -169,7 +183,7 @@ public function setImage_1 ($image_1) {

/**
* Get image_2 - Image
* @return Asset_Image
* @return \Pimcore\Model\Asset\Image
*/
public function getImage_2 () {
$preValue = $this->preGetValue("image_2");
Expand All @@ -182,7 +196,7 @@ public function getImage_2 () {

/**
* Set image_2 - Image
* @param Asset_Image $image_2
* @param \Pimcore\Model\Asset\Image $image_2
* @return \Pimcore\Model\Object\News
*/
public function setImage_2 ($image_2) {
Expand All @@ -192,7 +206,7 @@ public function setImage_2 ($image_2) {

/**
* Get image_3 - Image
* @return Asset_Image
* @return \Pimcore\Model\Asset\Image
*/
public function getImage_3 () {
$preValue = $this->preGetValue("image_3");
Expand All @@ -205,7 +219,7 @@ public function getImage_3 () {

/**
* Set image_3 - Image
* @param Asset_Image $image_3
* @param \Pimcore\Model\Asset\Image $image_3
* @return \Pimcore\Model\Object\News
*/
public function setImage_3 ($image_3) {
Expand Down
4 changes: 4 additions & 0 deletions website_demo/var/classes/Object/News/Listing.php
Expand Up @@ -4,6 +4,10 @@

use Pimcore\Model\Object;

/**
* @method Object\News current()
*/

class Listing extends Object\Listing\Concrete {

public $classId = 2;
Expand Down

0 comments on commit 6ddea7c

Please sign in to comment.