mirror of
https://github.com/werkraum-media/events.git
synced 2024-11-29 21:56:10 +01:00
60 lines
1.3 KiB
ReStructuredText
60 lines
1.3 KiB
ReStructuredText
.. ==================================================
|
|
.. FOR YOUR INFORMATION
|
|
.. --------------------------------------------------
|
|
.. -*- coding: utf-8 -*- with BOM.
|
|
|
|
.. include:: ../Includes.txt
|
|
|
|
|
|
.. _developer:
|
|
|
|
Developer Corner
|
|
================
|
|
|
|
Target group: **Developers**
|
|
|
|
Use this section for *providing code examples* or any **useful** information code wise.
|
|
|
|
|
|
.. _developer-hooks:
|
|
|
|
Hooks
|
|
-----
|
|
|
|
Possible hook examples. Input parameters are:
|
|
|
|
+----------------+---------------+---------------------------------+
|
|
| Parameter | Data type | Description |
|
|
+================+===============+=================================+
|
|
| $table | string | Name of the table |
|
|
+----------------+---------------+---------------------------------+
|
|
| $field | string | Name of the field |
|
|
+----------------+---------------+---------------------------------+
|
|
|
|
Use parameter :code:`$table` to retrieve the table name...
|
|
|
|
.. _developer-api:
|
|
|
|
API
|
|
---
|
|
|
|
How to use the API...
|
|
|
|
.. code-block:: php
|
|
|
|
$stuff = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
|
|
'\\Foo\\Bar\\Utility\\Stuff'
|
|
);
|
|
$stuff->do();
|
|
|
|
or some other language:
|
|
|
|
.. code-block:: javascript
|
|
:linenos:
|
|
:emphasize-lines: 2-4
|
|
|
|
$(document).ready(
|
|
function () {
|
|
doStuff();
|
|
}
|
|
);
|