Skip to content
TYPO3 CMS Extension - autoloader
PHP HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Classes
Configuration/TypoScript/BackendLayouts
Documentation
Resources
Tests/Unit
.editorconfig
.gitignore
.phpcs
.scrutinizer.yml
.styleci.yml
.travis.yml
README.md
composer.json
ext_autoload.php
ext_conf_template.txt
ext_emconf.php
ext_localconf.php
ext_tables.php
ext_typoscript_setup.txt

README.md

EXT:autoloader

Build Status Scrutinizer Code Quality Code Coverage Average time to resolve an issue Percentage of issues still open

Autoloader: Swiss Knife for Developers

Autoloader speeds up your development cycle - more time for coffee!

Working Examples

We drop the examples in EXT:autoloader. Please check other extensions tht use autoloader as example (EXT:calendarize)

Example for a SmartObject (Only one of the features)

ext_tables.php

\HDNET\Autoloader\Loader::extTables(
    'vendorName',
    'extensionKey',
    [
    	'SmartObjects',
    	'TcaFiles'
    ]
);

ext_localconf.php

\HDNET\Autoloader\Loader::extLocalconf(
	'vendorName',
	'extensionKey'
	[
		'SmartObjects',
		'TcaFiles'
	]
);

Test.php

namespace vendorName\extensionKey\Domain\Model;
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
/**
 * Create a test-table for this model with this annotation.
 * @db
 */
class Test extends AbstractEntity {

	/**
	 * A basic field
	 *
	 * @var string
	 * @db
	 */
	protected $textField;

	/**
	 * A boolean field
	 *
	 * @var bool
	 * @db
	 */
	protected $boolField;

	/**
	 * File example
	 *
	 * @var \TYPO3\CMS\Extbase\Domain\Model\FileReference
	 * @db
	 */
	protected $file;

	/**
	 * Custom (variable that has a custom DB type)
	 *
	 * @var int
	 * @db int(11) DEFAULT '0' NOT NULL
	 */
	protected $customField;

	// add here some Getters and Setters
}

Documentation

You can’t perform that action at this time.