0

plesk サーバー (ver 11) で新しい拡張機能を開発しようとしています。列の少ない単純なリストを作成しようとしています。例では、plesk (zend) メカニズムを介して作成する次のコードを見つけました。

private function _getListRandom()
{
    $data = array();
    $iconPath = pm_Context::getBaseUrl() . 'images/icon_16.gif';
    for ($i = 0; $i < 150; $i++) {
        $data[] = array(
            'column-1' => '<a href="#">' . (string)rand() . '</a>',
            'column-2' => '<img src="' . $iconPath . '" /> ' . (string)rand(),
        );
    }

    $list = new pm_View_List_Simple($this->view, $this->_request);
    $list->setData($data);
    $list->setColumns(array(
        'column-1' => array(
            'title' => 'Random with link',
            'noEscape' => true,
        ),
        'column-2' => array(
            'title' => 'Random with image',
            'noEscape' => true,
        ),
    ));
    // Take into account listDataAction corresponds to the URL /list-data/
    $list->setDataUrl(array('action' => 'list-data'));

    return $list;
}

そして後者について

public function listAction()
{
    $list = $this->_getListRandom();

    // List object for pm_View_Helper_RenderList
    $this->view->list = $list;
}

そして、私は1つの問題に完全に行き詰まっています:特定の列の並べ替えを無効にする方法は? インターネットで解決策を探していましたが、見つかりませんでした。よろしくお願いいたします。

4

1 に答える 1