Skip to content

Commit

Permalink
Added Widgets.php, Inline.php and a bunch of other stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Neuhaus committed Oct 18, 2012
1 parent 8420aaf commit c1b086e
Show file tree
Hide file tree
Showing 14 changed files with 554 additions and 293 deletions.
46 changes: 46 additions & 0 deletions Classes/Famelo/Demo/Admin/Controller/FormController.php
@@ -0,0 +1,46 @@
<?php
namespace Famelo\Demo\Admin\Controller;

/* *
* This script belongs to the FLOW3 package "Debug.Toolbar". *
* *
* */

use TYPO3\Flow\Annotations as Flow;
use Debug\Toolbar\Annotations as Debug;

/**
*/
class FormController extends \TYPO3\Flow\Mvc\Controller\ActionController {
/**
* Index action
*
* @return void
*/
public function indexAction() {
}

/**
* Index action
*
* @return void
*/
public function editAction() {
$widget = new \Famelo\Demo\Admin\Domain\Model\Widgets();
$widget->setString('Hello World');
$this->view->assign('widget', $widget);
}

/**
* Index action
*
* @return void
*/
public function saveAction() {
$objects = $this->request->getInternalArgument('__objects');
return '<div class="container">yea! i\'ve received an object :)</div>';
}

}

?>
31 changes: 31 additions & 0 deletions Classes/Famelo/Demo/Admin/Controller/TypoScriptController.php
@@ -0,0 +1,31 @@
<?php
namespace Famelo\Demo\Admin\Controller;

/* *
* This script belongs to the FLOW3 package "Debug.Toolbar". *
* *
* */

use TYPO3\Flow\Annotations as Flow;
use Debug\Toolbar\Annotations as Debug;

/**
*/
class TypoScriptController extends \TYPO3\Flow\Mvc\Controller\ActionController {

/**
* @var string
*/
protected $defaultViewObjectName = 'TYPO3\\TypoScript\\View\\TypoScriptView';

/**
* Index action
*
* @return void
*/
public function indexAction() {
}

}

?>
58 changes: 50 additions & 8 deletions Classes/Famelo/Demo/Admin/Domain/Model/Inline.php
Expand Up @@ -37,32 +37,46 @@ class Inline {

/**
* @var \Famelo\Demo\Admin\Domain\Model\Address
* @ORM\ManyToOne(inversedBy="comments", cascade={"all"})
* @Expose\Inline(variant="TYPO3.Expose:InlineStacked")
* @ORM\ManyToOne(inversedBy="inlineStacked", cascade={"all"})
* @Expose\Inline(element="TYPO3.Expose:InlineStacked")
*/
protected $addressStacked;

/**
* @var \Famelo\Demo\Admin\Domain\Model\Address
* @ORM\ManyToOne(inversedBy="comments", cascade={"all"})
* Expose\Inline(variant="TYPO3.Expose:InlineTabular")
* @ORM\ManyToOne(inversedBy="inlineTabular", cascade={"all"})
* @Expose\Inline(element="TYPO3.Expose:InlineTabular")
*/
protected $addressTabular;

/**
* @var \Famelo\Demo\Admin\Domain\Model\Address
* @ORM\ManyToOne(inversedBy="inlineSeamless", cascade={"all"})
* @Expose\Inline(element="TYPO3.Expose:InlineSeamless")
*/
protected $addressSeamless;

/**
* @var \Doctrine\Common\Collections\Collection<\Famelo\Demo\Admin\Domain\Model\Address>
* @ORM\ManyToMany(inversedBy="widgets_manytomany", cascade={"all"})
* @Expose\Inline(variant="TYPO3.Expose:InlineStacked")
* @ORM\ManyToMany(inversedBy="inlinesStacked", cascade={"all"})
* @Expose\Inline(element="TYPO3.Expose:InlineStacked")
*/
protected $addressesStacked;

/**
* @var \Doctrine\Common\Collections\Collection<\Famelo\Demo\Admin\Domain\Model\Address>
* @ORM\ManyToMany(inversedBy="widgets_manytomany", cascade={"all"})
* Expose\Inline
* @ORM\ManyToMany(inversedBy="inlinesTabular", cascade={"all"})
* @Expose\Inline(element="TYPO3.Expose:InlineTabular")
*/
protected $addressesTabular;

/**
* @var \Doctrine\Common\Collections\Collection<\Famelo\Demo\Admin\Domain\Model\Address>
* @ORM\ManyToMany(inversedBy="inlinesSeamless", cascade={"all"})
* @Expose\Inline(element="TYPO3.Expose:InlineSeamless")
*/
protected $addressesSeamless;

/**
* @param $addressStacked
*/
Expand Down Expand Up @@ -118,6 +132,34 @@ public function setAddressesTabular($addressesTabular) {
public function getAddressesTabular() {
return $this->addressesTabular;
}

/**
* @param object $addressSeamless
*/
public function setAddressSeamless($addressSeamless) {
$this->addressSeamless = $addressSeamless;
}

/**
* @return object
*/
public function getAddressSeamless() {
return $this->addressSeamless;
}

/**
* @param array $addressesSeamless
*/
public function setAddressesSeamless($addressesSeamless) {
$this->addressesSeamless = $addressesSeamless;
}

/**
* @return array
*/
public function getAddressesSeamless() {
return $this->addressesSeamless;
}
}

?>

0 comments on commit c1b086e

Please sign in to comment.