src/Application.php
public function __async_form($identifier = null)
    {
        $result = array('status' => false);

        // Try to find entity
        $entity = null;
        if ($this->findAsyncEntityByID($identifier, $entity, $result)) { // Try to find
            // Build form for entity
            $form = new $this->formClassName($this, $this->query->className($this->entity), $entity);
            //elapsed('rendering form');
            // Render form
            $result['form'] = $form->render();
            $result['entity'] = $entity;
            if (isset($form->tabs[0]->activeButton)) {
                $result['activeButton'] = $form->tabs[0]->activeButton;
            }
        }

        return $result;
    }
public function __async_form($identifier = null)
    {
        $result = array('status' => false);

        // Try to find entity
        $entity = null;
        if ($this->findAsyncEntityByID($identifier, $entity, $result)) { // Try to find
            // Build form for entity
            $form = new $this->formClassName($this, $this->query->className($this->entity), $entity);
            //elapsed('rendering form');
            // Render form
            $result['form'] = $form->render();
            $result['entity'] = $entity;
            if (isset($form->tabs[0]->activeButton)) {
                $result['activeButton'] = $form->tabs[0]->activeButton;
            }
        }

        return $result;
    }
public function __async_form ( $ identifier = null ) { $ result = array ( 'status' => false ) ; // Try to find entity $ entity = null ; if ( $ this -> findAsyncEntityByID ( $ identifier , $ entity , $ result ) ) { // Try to find // Build form for entity $ form = new $ this -> formClassName ( $ this , $ this -> query -> className ( $ this -> entity ) , $ entity ) ; //elapsed('rendering form'); // Render form $ result [ 'form' ] = $ form -> render ( ) ; $ result [ 'entity' ] = $ entity ; if ( isset ( $ form -> tabs [ 0 ] -> activeButton ) ) { $ result [ 'activeButton' ] = $ form -> tabs [ 0 ] -> activeButton ; } } return $ result ; }
Asynchronous material entity form rendering action
@param int $identifier Material entity identifier
@return array Asynchronous response array
Asynchronous material entity form rendering action