backend/protected/modules/product/modules/option/OptionWidget.php 1 location
|
@@ 37-45 (lines=9) @@
|
34 |
|
$this->options = BOption::model()->getByProductId($this->model->id);
|
35 |
|
}
|
36 |
|
|
37 |
|
public function run()
|
38 |
|
{
|
39 |
|
if( !$this->isAvailable() )
|
40 |
|
return;
|
41 |
|
|
42 |
|
echo '<tr><th><label>'.$this->header.'</label></th><td>';
|
43 |
|
$this->renderGrid();
|
44 |
|
echo '</td></tr>';
|
45 |
|
}
|
46 |
|
|
47 |
|
private function renderGrid()
|
48 |
|
{
|
backend/protected/modules/product/modules/parameterGrid/ParameterGridWidget.php 1 location
|
@@ 48-56 (lines=9) @@
|
45 |
|
$this->dataProvider = $this->model->getParametersDataProvider($this->parameterKey);
|
46 |
|
}
|
47 |
|
|
48 |
|
public function run()
|
49 |
|
{
|
50 |
|
if( !$this->isAvailable() )
|
51 |
|
return;
|
52 |
|
|
53 |
|
echo '<tr><th><label>'.$this->header.'</label></th><td>';
|
54 |
|
$this->renderGrid();
|
55 |
|
echo '</td></tr>';
|
56 |
|
}
|
57 |
|
|
58 |
|
private function renderGrid()
|
59 |
|
{
|
backend/protected/widgets/RowGridWidget.php 1 location
|
@@ 62-71 (lines=10) @@
|
59 |
|
}
|
60 |
|
}
|
61 |
|
|
62 |
|
public function run()
|
63 |
|
{
|
64 |
|
if( !$this->isAvailable() )
|
65 |
|
return;
|
66 |
|
|
67 |
|
echo '<tr><th><label>'.$this->header.'</label></th><td>';
|
68 |
|
$this->renderButton();
|
69 |
|
$this->renderGrid();
|
70 |
|
echo '</td></tr>';
|
71 |
|
}
|
72 |
|
|
73 |
|
/**
|
74 |
|
* @return BActiveRecord $model
|