CoolFace
Apppublic

kenken999/php

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
listpage_dpdash.php113 linesDownload Raw Back to classes
1<?php2 3class ListPage_DPDash extends ListPage_Dashboard4{5	6	/**7	 * Array of details preview master key8	 * @var integer9	 */10	var $dpMasterKey = array ();11	12	var $showDetails = false;13 14 15	/**16	 * Constructor, set initial params17	 * @param array $params18	 */19	function __construct(&$params)20	{21		parent::__construct($params);22		23		$dashDetails = $this->dashElementData["details"][$this->tName];24		25		$this->showAddInPopup = $dashDetails["add"];26		$this->showEditInPopup = $dashDetails["edit"];27		$this->showViewInPopup = $dashDetails["view"];		28 29	30		$this->searchClauseObj->clearSearch();31		32		$this->jsSettings['tableSettings'][$this->tName]['masterTable'] = $this->masterTable;33		$this->jsSettings['tableSettings'][$this->tName]['firstTime'] = $this->firstTime;34		$this->jsSettings['tableSettings'][$this->tName]['strKey'] = $this->getStrMasterKey();35	}36	37	/**38	 * Assigne Import Links or not39	 */40	function importLinksAttrs() 41	{42	}43	44	/**45	 * The stub preventing the detail page from showing a master info block46	 */47	function displayMasterTableInfo() 48	{49	}50	51	/**52	 * Process master key value53	 * Set master key for create DPInline params54	 */55	function processMasterKeyValue() 56	{57		parent::processMasterKeyValue();58		for($i = 1; $i <= count($this->masterKeysReq); $i++)59			$this->dpMasterKey[] = $this->masterKeysReq[$i];60	}61	62	/**63	 * Get string of master keys for dpInline on Edit page64	 */65	function getStrMasterKey()66	{67		$strkey = array();68		for($i = 0; $i < count($this->dpMasterKey); $i++)69		{70			$strkey[$i] = $this->dpMasterKey[$i];71		}72		return $strkey;	73	}74	75	/**76	 * A stub preventing the Search Panel from building77	 */78	function buildSearchPanel(){}79	/**80	 * A stub preventing simple_search from building81	 */82	public function assignSimpleSearch() {}83	84	function deleteAvailable() {85		return ListPage_Embed::deleteAvailable() &&  $this->dashElementData["details"][$this->tName]["delete"];86	}87 88	function editAvailable() {89		return ListPage_Embed::editAvailable() && $this->dashElementData["details"][$this->tName]["edit"];90	}91 92	function addAvailable() {93		return ListPage_Embed::addAvailable() && $this->dashElementData["details"][$this->tName]["add"];94	}95 96	function viewAvailable() {97		return ListPage_Embed::viewAvailable() && $this->dashElementData["details"][$this->tName]["view"];98	}99 100	function inlineEditAvailable() {101		return false; 102	}103	function inlineAddAvailable() {104		return false;105	}106 107	function displayTabsInPage()108	{109		return false;110	}111 112}113?>