sqlGetFromDca

The sqlGetFromDca hook is triggered when sql definitions in DCA files are evaluated. It passes the generated SQL definition and expects the same as return value.

Available

from Contao 3.2.0.

Parameters

  1. array $arrSql

    The parsed SQL definition.

Return Values

Return $arrSql after adding your custom definitions.

Example

<?php

// config.php
$GLOBALS['TL_HOOKS']['sqlGetFromDca'][] = array('MyClass', 'mySqlGetFromDca');

// MyClass.php
public function mySqlGetFromDca($arrSql)
{
    // Modify the array of SQL statements

    return $arrSql;
}

More information

References

See also

results matching ""

    No results matching ""