[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fmsystem-commits] [7025] bim: formatting
From: |
Sigurd Nes |
Subject: |
[Fmsystem-commits] [7025] bim: formatting |
Date: |
Sun, 20 Feb 2011 20:33:04 +0000 |
Revision: 7025
http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=7025
Author: sigurdne
Date: 2011-02-20 20:33:04 +0000 (Sun, 20 Feb 2011)
Log Message:
-----------
bim: formatting
Modified Paths:
--------------
trunk/bim/inc/class.uibimitem.inc.php
Modified: trunk/bim/inc/class.uibimitem.inc.php
===================================================================
--- trunk/bim/inc/class.uibimitem.inc.php 2011-02-20 20:31:33 UTC (rev
7024)
+++ trunk/bim/inc/class.uibimitem.inc.php 2011-02-20 20:33:04 UTC (rev
7025)
@@ -25,14 +25,18 @@
'showBimItem' => true
);
- public function showItems() {
+ public function showItems()
+ {
$GLOBALS['phpgw']->js->validate_file( 'yui3', 'yui/yui-min',
'phpgwapi' );
$GLOBALS['phpgw']->js->validate_file( 'yahoo', 'bim.modellist',
'bim' );
$modelId = phpgw::get_var("modelId");
//$modelId = 3;
- if(empty($modelId)) {
+ if(empty($modelId))
+ {
echo "No modelId!";
- } else {
+ }
+ else
+ {
$GLOBALS['phpgw']->xslttpl->add_file(array('bim_showitems'));
$sobimitem = new sobimitem_impl($this->db);
$sobimitem->setModelId($modelId);
@@ -41,26 +45,28 @@
$items = $bobimitem->fetchItemsByModelId();
$bimItems = array();
$count = count(($items));
- foreach( $items as $bimItem) {
+ foreach( $items as $bimItem)
+ {
/* @var $bimItem BimItem*/
array_push($bimItems,
$bimItem->transformObjectToArray());//$bimItem->);
}
//$bimItems = print_r($items, true);
- $data = array(
+ $data = array
+ (
'someData' => "data",
'modelId' => $modelId,
'count' => $count,
'bimItems' => array("item" => $bimItems)
);
-
$this->setupBimCss();
$GLOBALS['phpgw']->xslttpl->set_var('bimitems',$data);
}
}
- public function showBimItem() {
+ public function showBimItem()
+ {
/*$GLOBALS['phpgw_info']['flags']['noheader'] = false;
$GLOBALS['phpgw_info']['flags']['nofooter'] = false;
$GLOBALS['phpgw_info']['flags']['xslt_app'] = false;
@@ -70,19 +76,16 @@
$GLOBALS['phpgw']->js->validate_file( 'yahoo', 'bim.modellist',
'bim' );
$modelGuid = phpgw::get_var("modelGuid");
//$modelId = 3;
- if(empty($modelGuid)) {
+ if(empty($modelGuid))
+ {
echo "No guid!";
- } else {
+ }
+ else
+ {
$GLOBALS['phpgw']->xslttpl->add_file(array('bim_showSingleItem'));
$sobimitem = new sobimitem_impl($this->db);
/* @var $bimItem BimItem */
- $bimItem = $sobimitem->getBimItem($modelGuid);
- $data = array(
- 'item' => $bimItem->transformObjectToArray(),
- 'dir' => PHPGW_TEMPLATE_DIR
- );
- //$GLOBALS['phpgw']->xslttpl->set_var('bimitem',$data);
-
+ $bimItem = $sobimitem->getBimItem($modelGuid);
$GLOBALS['phpgw']->xslttpl->set_xml_data($bimItem->getXml());
$this->setupBimCss();
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Fmsystem-commits] [7025] bim: formatting,
Sigurd Nes <=