Commit f79c7176 authored by Thomas Löffler's avatar Thomas Löffler
Browse files

[TASK] Initial commit

Code directly built by extension_builder
parents
/.idea/
Thumbs.db
*~
\ No newline at end of file
<?php
/***************************************************************
* Copyright notice
*
* (c) 2015 Thomas Löffler <thomas.loeffler@typo3.org>
*
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
*
*
* @package t3o_membership
* @license http://www.gnu.org/licenses/gpl.html GNU General Public License, version 3 or later
*
*/
class Tx_T3oMembership_Controller_MemberController extends Tx_Extbase_MVC_Controller_ActionController {
/**
* memberRepository
*
* @var Tx_T3oMembership_Domain_Repository_MemberRepository
*/
protected $memberRepository;
/**
* injectMemberRepository
*
* @param Tx_T3oMembership_Domain_Repository_MemberRepository $memberRepository
* @return void
*/
public function injectMemberRepository(Tx_T3oMembership_Domain_Repository_MemberRepository $memberRepository) {
$this->memberRepository = $memberRepository;
}
/**
* action list
*
* @return void
*/
public function listAction() {
$members = $this->memberRepository->findAll();
$this->view->assign('members', $members);
}
}
?>
\ No newline at end of file
<?php
/***************************************************************
* Copyright notice
*
* (c) 2015 Thomas Löffler <thomas.loeffler@typo3.org>
*
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
*
*
* @package t3o_membership
* @license http://www.gnu.org/licenses/gpl.html GNU General Public License, version 3 or later
*
*/
class Tx_T3oMembership_Domain_Model_Member extends Tx_Extbase_DomainObject_AbstractEntity {
/**
* Member name
*
* @var string
* @validate NotEmpty
*/
protected $name;
/**
* externalId
*
* @var integer
* @validate NotEmpty
*/
protected $externalId;
/**
* endDate
*
* @var DateTime
* @validate NotEmpty
*/
protected $endDate;
/**
* address
*
* @var string
* @validate NotEmpty
*/
protected $address;
/**
* zip
*
* @var string
* @validate NotEmpty
*/
protected $zip;
/**
* city
*
* @var string
* @validate NotEmpty
*/
protected $city;
/**
* country
*
* @var string
* @validate NotEmpty
*/
protected $country;
/**
* email
*
* @var string
* @validate NotEmpty
*/
protected $email;
/**
* url
*
* @var string
*/
protected $url;
/**
* membership
*
* @var Tx_T3oMembership_Domain_Model_Membership
*/
protected $membership;
/**
* Returns the name
*
* @return string $name
*/
public function getName() {
return $this->name;
}
/**
* Sets the name
*
* @param string $name
* @return void
*/
public function setName($name) {
$this->name = $name;
}
/**
* Returns the externalId
*
* @return integer $externalId
*/
public function getExternalId() {
return $this->externalId;
}
/**
* Sets the externalId
*
* @param integer $externalId
* @return void
*/
public function setExternalId($externalId) {
$this->externalId = $externalId;
}
/**
* Returns the endDate
*
* @return DateTime $endDate
*/
public function getEndDate() {
return $this->endDate;
}
/**
* Sets the endDate
*
* @param DateTime $endDate
* @return void
*/
public function setEndDate($endDate) {
$this->endDate = $endDate;
}
/**
* Returns the address
*
* @return string $address
*/
public function getAddress() {
return $this->address;
}
/**
* Sets the address
*
* @param string $address
* @return void
*/
public function setAddress($address) {
$this->address = $address;
}
/**
* Returns the zip
*
* @return string $zip
*/
public function getZip() {
return $this->zip;
}
/**
* Sets the zip
*
* @param string $zip
* @return void
*/
public function setZip($zip) {
$this->zip = $zip;
}
/**
* Returns the city
*
* @return string $city
*/
public function getCity() {
return $this->city;
}
/**
* Sets the city
*
* @param string $city
* @return void
*/
public function setCity($city) {
$this->city = $city;
}
/**
* Returns the country
*
* @return string $country
*/
public function getCountry() {
return $this->country;
}
/**
* Sets the country
*
* @param string $country
* @return void
*/
public function setCountry($country) {
$this->country = $country;
}
/**
* Returns the email
*
* @return string $email
*/
public function getEmail() {
return $this->email;
}
/**
* Sets the email
*
* @param string $email
* @return void
*/
public function setEmail($email) {
$this->email = $email;
}
/**
* Returns the url
*
* @return string $url
*/
public function getUrl() {
return $this->url;
}
/**
* Sets the url
*
* @param string $url
* @return void
*/
public function setUrl($url) {
$this->url = $url;
}
/**
* Returns the membership
*
* @return Tx_T3oMembership_Domain_Model_Membership $membership
*/
public function getMembership() {
return $this->membership;
}
/**
* Sets the membership
*
* @param Tx_T3oMembership_Domain_Model_Membership $membership
* @return void
*/
public function setMembership(Tx_T3oMembership_Domain_Model_Membership $membership) {
$this->membership = $membership;
}
}
?>
\ No newline at end of file
<?php
/***************************************************************
* Copyright notice
*
* (c) 2015 Thomas Löffler <thomas.loeffler@typo3.org>
*
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
*
*
* @package t3o_membership
* @license http://www.gnu.org/licenses/gpl.html GNU General Public License, version 3 or later
*
*/
class Tx_T3oMembership_Domain_Model_Membership extends Tx_Extbase_DomainObject_AbstractValueObject {
/**
* name
*
* @var string
* @validate NotEmpty
*/
protected $name;
/**
* logo
*
* @var string
* @validate NotEmpty
*/
protected $logo;
/**
* Returns the name
*
* @return string $name
*/
public function getName() {
return $this->name;
}
/**
* Sets the name
*
* @param string $name
* @return void
*/
public function setName($name) {
$this->name = $name;
}
/**
* Returns the logo
*
* @return string $logo
*/
public function getLogo() {
return $this->logo;
}
/**
* Sets the logo
*
* @param string $logo
* @return void
*/
public function setLogo($logo) {
$this->logo = $logo;
}
}
?>
\ No newline at end of file
<?php
/***************************************************************
* Copyright notice
*
* (c) 2015 Thomas Löffler <thomas.loeffler@typo3.org>
*
* All rights reserved
*
* This script is part of the TYPO3 project. The TYPO3 project is
* free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* The GNU General Public License can be found at
* http://www.gnu.org/copyleft/gpl.html.
*
* This script is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
*
*
* @package t3o_membership
* @license http://www.gnu.org/licenses/gpl.html GNU General Public License, version 3 or later
*
*/
class Tx_T3oMembership_Domain_Repository_MemberRepository extends Tx_Extbase_Persistence_Repository {
}
?>
\ No newline at end of file
#
# Extension Builder settings for extension t3o_membership
# generated 2015-06-26
#
# See http://www.yaml.org/spec/1.2/spec.html
#
---
########### Overwrite settings ###########
#
# These settings only apply, if the roundtrip feature of the extension builder
# is enabled in the extension manager
#
# Usage:
# nesting reflects the file structure
# a setting applies to a file or recursive to all files and subfolders
#
# merge:
# means for classes: All properties ,methods and method bodies
# of the existing class will be modified according to the new settings
# but not overwritten
#
# for locallang xml files: Existing keys and labels are always
# preserved (renaming in the GUI has only influence on the property and method names)
#
# for other files: You will find a Split token at the end of the file
# After this token you can write whatever you want and it will be appended
# everytime the code is generated
#
# keep:
# files are never overwritten
# These settings may break the functionality of the extension builder!
# Handle with care!
#
#
############ extension settings ##############
overwriteSettings:
Classes:
Controller: merge
Domain:
Model: merge
Repository: merge
Configuration:
#TCA: merge
#TypoScript: keep
Resources:
Private:
Language:
#locallang.xml: merge
#locallang.xlf: merge
#Templates: keep
ext_icon.gif: keep
# ext_localconf.php: merge
# ext_tables.php: merge
# ext_tables.sql: merge
## ext_autoload.php is only needed in special cases ##
createAutoloadRegistry: false
######### settings for classBuilder #############################
#
# here you may define default parent classes for your classes
# these settings only apply for new generated classes
# you may also just change the parent class in the generated class file.
# It will be kept on next code generation, if the overwrite settings
# are configured to merge it
#
# Experimental!!
#################################################################
classBuilder:
Controller:
parentClass: Tx_Extbase_MVC_Controller_ActionController
Model:
AbstractEntity:
parentClass: Tx_Extbase_DomainObject_AbstractEntity
AbstractValueObject:
parentClass: Tx_Extbase_DomainObject_AbstractValueObject
Repository:
parentClass: Tx_Extbase_Persistence_Repository
\ No newline at end of file
<?php
if (!defined ('TYPO3_MODE')) {
die ('Access denied.');
}
$TCA['tx_t3omembership_domain_model_member'] = array(
'ctrl' => $TCA['tx_t3omembership_domain_model_member']['ctrl'],
'interface' => array(
'showRecordFieldList' => 'sys_language_uid, l10n_parent, l10n_diffsource, hidden, name, external_id, end_date, address, zip, city, country, email, url, membership',
),
'types' => array(
'1' => array('showitem' => 'sys_language_uid;;;;1-1-1, l10n_parent, l10n_diffsource, hidden;;1, name, external_id, end_date, address, zip, city, country, email, url, membership,--div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access,starttime, endtime'),
),
'palettes' => array(
'1' => array('showitem' => ''),
),
'columns' => array(
'sys_language_uid' => array(
'exclude' => 1,
'label' => 'LLL:EXT:lang/locallang_general.xml:LGL.language',
'config' => array(
'type' => 'select',
'foreign_table' => 'sys_language',
'foreign_table_where' => 'ORDER BY sys_language.title',
'items' => array(
array('LLL:EXT:lang/locallang_general.xml:LGL.allLanguages', -1),
array('LLL:EXT:lang/locallang_general.xml:LGL.default_value', 0)