Esempio n. 1
0
function createNewItem()
{
    $oFields = new BxDolPFM(1);
    $iNewID = $oFields->createNewField();
    header('Content-Type:text/javascript');
    echo '{"id":' . $iNewID . '}';
}
Esempio n. 2
0
function createNewItem()
{
    $oFields = new BxDolPFM(1);
    $iNewID = $oFields->createNewField();
    bx_import('BxDolInstallerUtils');
    $oInstallerUtils = new BxDolInstallerUtils();
    $oInstallerUtils->updateProfileFieldsHtml();
    header('Content-Type:text/javascript');
    echo '{id:' . $iNewID . '}';
}