apiComplete

This hook is triggered completing the api process.

Available from CustomCatalog 2.0

Parameters

  1. object (API) $objAPI

    The api instance

Example

<?php

// config.php
$GLOBALS['CUSTOMCATALOG_HOOKS']['apiComplete'][] = array('MyClass', 'myApiCompleteCallback');

// MyClass.php
public function myApiCompleteCallback($objApi)
{ 
    if($objApi->getTable() == 'my_cc_table') 
    { 
        // api completed. do something 
    }
}

results matching ""

    No results matching ""