本文整理汇总了PHP中Manager::getData方法的典型用法代码示例。如果您正苦于以下问题:PHP Manager::getData方法的具体用法?PHP Manager::getData怎么用?PHP Manager::getData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Manager
的用法示例。
在下文中一共展示了Manager::getData方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
function __construct()
{
$data = Manager::getData();
$array = json_decode($data->gridInputExemplo3_data);
mdump($array);
parent::__construct('gridInputExemploGrid3', $array, null, '', 0, 1);
$this->addActionSelect('marca3');
$this->addColumn(new MObjectGridColumn('id', '', 'left', true, '0%', false));
$this->addColumn(new MObjectGridColumn('codigoExemplo3', 'Código', 'left', true, '20%', true));
$this->addColumn(new MObjectGridColumn('descricaoExemplo3', 'Descrição', 'left', true, '80%', true));
$this->setHasForm('true');
}
示例2: acao2
public function acao2()
{
$data = Manager::getData();
$array = json_decode($data->gridInputExemplo2_data);
$selecionados = explode(':', $data->marca2);
foreach ($selecionados as $id) {
foreach ($array as $object) {
if ($object->id == $id) {
$attr = 'gridInputExemplo2::codigo';
$line .= '[' . $object->{$attr} . ']';
}
}
}
return new MLabel($line);
}
示例3: onCreate
function onCreate()
{
$this->data = Manager::getData();
$this->attributes = new MAttributes();
$this->style = new MStyle();
$this->inner = '';
$this->event = array();
$this->ajax = array();
$this->fieldLabel = NULL;
$this->setEnabled(true);
$this->setReadonly(false);
$this->setVisible(true);
}
示例4: postProcess
public function postProcess()
{
$diff = time() - Manager::getData()->profile;
mdump('Executado em ' . $diff . ' segundos');
}
示例5: getCurrentURL
/**
* Return current URL.
* Returns the URL address of the current page.
*
* @returns (string) URL address
*
*/
public static function getCurrentURL($parametrized = false)
{
//static
if (!($url = self::$instance->getRequest()->getURL())) {
//$url = self::$instance->baseURL . (self::$instance->java ? '' : '/' . self::$instance->getConf('options.dispatch'));
$url = self::$instance->baseURL . '/' . self::$instance->getConf('options.dispatch');
}
if ($parametrized) {
$url .= "?";
foreach (Manager::getData() as $key => $value) {
if (strpos($key, "__") !== 0 && strpos($key, "grid") !== 0) {
$value = urlencode($value);
$url .= $key . "=" . $value . "&";
}
}
}
return $url;
}
示例6: generateFields
public function generateFields()
{
$fields = array();
//$fields[] = new MHiddenField('_GRIDNAME', '_gridName');
$fields[] = new MHiddenField($this->name . '_PAGING', 'no');
if ($this->idSelect != '') {
$fields[] = new MHiddenField($this->idSelect, Manager::getData($this->idSelect));
}
//if (is_null(mrequest('_GRIDNAME'))) {
// $fields[] = new MHiddenField($this->name . '_PAGE', '1');
// $fields[] = new MHiddenField($this->name . '_GOPAGE', '1');
//} else {
$fields[] = new MHiddenField($this->name . '_PAGE', $this->pageNumber);
$fields[] = new MHiddenField($this->name . '_GOPAGE', $this->pageNumber);
//}
$this->state->saveViewState();
$fields[] = new MHiddenField($this->state->getId(), $this->state->getCode());
return $fields;
}
示例7: getData
public function getData()
{
return Manager::getData();
}
示例8: setData
public function setData()
{
$this->data = Manager::getData();
}