libraries/MVC/BController.php
public function softmodule_fields_list($fview,$fcontroller=NULL){
		$mylist=$this->softmodules_list();
		$myitm=NULL;
		//Search the necessary softmodule...
		foreach($mylist as $itm){
			if($itm->view==$fview){
				$myitm=$itm;
				}
			}
		if(empty($myitm)){
			return false;
			}
		$params=array();
		foreach($myitm->params as $p){
			$fld=$this->field_get($p->fieldtype,$p->com);
			if(empty($fld)){
				continue;
				}
			$fld->controller=empty($fcontroller)?$this:$fcontroller;
			$fld->name=$p->name;
			$fld->id=$p->id;
			$fld->fieldtype=$p->fieldtype;
			$fld->params=$p->params;
			$fld->prepare();
			$params[]=$fld;
			}
		return $params;
		}
public function softmodule_fields_list($fview,$fcontroller=NULL){
		$mylist=$this->softmodules_list();
		$myitm=NULL;
		//Search the necessary softmodule...
		foreach($mylist as $itm){
			if($itm->view==$fview){
				$myitm=$itm;
				}
			}
		if(empty($myitm)){
			return false;
			}
		$params=array();
		foreach($myitm->params as $p){
			$fld=$this->field_get($p->fieldtype,$p->com);
			if(empty($fld)){
				continue;
				}
			$fld->controller=empty($fcontroller)?$this:$fcontroller;
			$fld->name=$p->name;
			$fld->id=$p->id;
			$fld->fieldtype=$p->fieldtype;
			$fld->params=$p->params;
			$fld->prepare();
			$params[]=$fld;
			}
		return $params;
		}
public function softmodule_fields_list ( $ fview , $ fcontroller = NULL ) { $ mylist = $ this -> softmodules_list ( ) ; $ myitm = NULL ; //Search the necessary softmodule... foreach ( $ mylist as $ itm ) { if ( $ itm -> view == $ fview ) { $ myitm = $ itm ; } } if ( empty ( $ myitm ) ) { return false ; } $ params = array ( ) ; foreach ( $ myitm -> params as $ p ) { $ fld = $ this -> field_get ( $ p -> fieldtype , $ p -> com ) ; if ( empty ( $ fld ) ) { continue ; } $ fld -> controller = empty ( $ fcontroller ) ? $ this : $ fcontroller ; $ fld -> name = $ p -> name ; $ fld -> id = $ p -> id ; $ fld -> fieldtype = $ p -> fieldtype ; $ fld -> params = $ p -> params ; $ fld -> prepare ( ) ; $ params [ ] = $ fld ; } return $ params ; }
Load fields objects list...
@return array soft modules list for current component
Load fields objects list ...