Example #1
0
function glazyMultipleBegin($baseElementOptions = array())
{
    if (!empty($baseElementOptions)) {
        $baseElementInfo = glazyElementInfoForPassedOptions($baseElementOptions);
    } else {
        $baseElementInfo = array();
    }
    return array('baseElementInfo' => $baseElementInfo, 'elements' => array());
}
Example #2
0
function glazyPrepareElement($tagNameOrElementOptions, $contentValue = null, $contentType = GLAZE_TYPE_TEXT)
{
    if ($contentValue === false) {
        return false;
    }
    $elementInfo = glazyElementInfoForPassedOptions($tagNameOrElementOptions);
    if (!isset($contentValue)) {
        $innerPreparedInfo = null;
    } elseif (!empty($contentValue['glazyPrepare'])) {
        $innerPreparedInfo = $contentValue;
    } else {
        $innerPreparedInfo = glazyPrepareContentJoinedBy($contentValue, $contentType, '');
    }
    $elementInfo['glazyPrepare'] = GLAZE_PREPARE_ELEMENT;
    $elementInfo['innerPreparedInfo'] = $innerPreparedInfo;
    return $elementInfo;
}