lib/components/web/widgets/form/FileStorage.php
public function renderItem($storageEngine)
    {
        $item = $this->prepareItem($storageEngine);
        $rendered = $storageEngine->storageHandler->object->generate($item);
        if (!$rendered) {
            return false;
        }
        $hiddenItem = clone $item;
        $hiddenItem->attribute = Html::changeAttribute($hiddenItem->attribute, 'storageEngine');
        $item->model->storageEngine = $storageEngine->primaryKey;
        $rendered .= Html::activeHiddenInput($item->model, $hiddenItem->attribute, $item->inputOptions);

        return $rendered;
    }
public function renderItem($storageEngine)
    {
        $item = $this->prepareItem($storageEngine);
        $rendered = $storageEngine->storageHandler->object->generate($item);
        if (!$rendered) {
            return false;
        }
        $hiddenItem = clone $item;
        $hiddenItem->attribute = Html::changeAttribute($hiddenItem->attribute, 'storageEngine');
        $item->model->storageEngine = $storageEngine->primaryKey;
        $rendered .= Html::activeHiddenInput($item->model, $hiddenItem->attribute, $item->inputOptions);

        return $rendered;
    }
public function renderItem ( $ storageEngine ) { $ item = $ this -> prepareItem ( $ storageEngine ) ; $ rendered = $ storageEngine -> storageHandler -> object -> generate ( $ item ) ; if ( ! $ rendered ) { return false ; } $ hiddenItem = clone $ item ; $ hiddenItem -> attribute = Html :: changeAttribute ( $ hiddenItem -> attribute , 'storageEngine' ) ; $ item -> model -> storageEngine = $ storageEngine -> primaryKey ; $ rendered .= Html :: activeHiddenInput ( $ item -> model , $ hiddenItem -> attribute , $ item -> inputOptions ) ; return $ rendered ; }
[[@doctodo method_description:renderItem]].

@param [[@doctodo param_type:storageEngine]] $storageEngine [[@doctodo param_description:storageEngine]]

@return [[@doctodo return_type:renderItem]] [[@doctodo return_description:renderItem]]
[[ @doctodo method_description : renderItem ]] .