00001 <?php 00002 /********************************************************************************* 00003 * Zurmo is a customer relationship management program developed by 00004 * Zurmo, Inc. Copyright (C) 2017 Zurmo Inc. 00005 * 00006 * Zurmo is free software; you can redistribute it and/or modify it under 00007 * the terms of the GNU Affero General Public License version 3 as published by the 00008 * Free Software Foundation with the addition of the following permission added 00009 * to Section 15 as permitted in Section 7(a): FOR ANY PART OF THE COVERED WORK 00010 * IN WHICH THE COPYRIGHT IS OWNED BY ZURMO, ZURMO DISCLAIMS THE WARRANTY 00011 * OF NON INFRINGEMENT OF THIRD PARTY RIGHTS. 00012 * 00013 * Zurmo is distributed in the hope that it will be useful, but WITHOUT 00014 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 00015 * FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more 00016 * details. 00017 * 00018 * You should have received a copy of the GNU Affero General Public License along with 00019 * this program; if not, see http://www.gnu.org/licenses or write to the Free 00020 * Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 00021 * 02110-1301 USA. 00022 * 00023 * You can contact Zurmo, Inc. with a mailing address at 27 North Wacker Drive 00024 * Suite 370 Chicago, IL 60606. or at email address contact@zurmo.com. 00025 * 00026 * The interactive user interfaces in original and modified versions 00027 * of this program must display Appropriate Legal Notices, as required under 00028 * Section 5 of the GNU Affero General Public License version 3. 00029 * 00030 * In accordance with Section 7(b) of the GNU Affero General Public License version 3, 00031 * these Appropriate Legal Notices must retain the display of the Zurmo 00032 * logo and Zurmo copyright notice. If the display of the logo is not reasonably 00033 * feasible for technical reasons, the Appropriate Legal Notices must display the words 00034 * "Copyright Zurmo Inc. 2017. All rights reserved". 00035 ********************************************************************************/ 00036 00041 class SecuredActionBarForProductsSearchAndListView extends SecuredActionBarForSearchAndListView 00042 { 00046 public static function getDefaultMetadata() 00047 { 00048 $metadata = array( 00049 'global' => array( 00050 'toolbar' => array( 00051 'elements' => array( 00052 array( 00053 'type' => 'ProductsMenu', 00054 'iconClass' => 'icon-products', 00055 ), 00056 array( 00057 'type' => 'ProductTemplatesMenu', 00058 'iconClass' => 'icon-catalog-items', 00059 ), 00060 array( 00061 'type' => 'ProductCategoriesMenu', 00062 'iconClass' => 'icon-product-categories', 00063 ), 00064 array('type' => 'MassEditMenu', 00065 'listViewGridId' => 'eval:$this->listViewGridId', 00066 'pageVarName' => 'eval:$this->pageVarName', 00067 'iconClass' => 'icon-edit'), 00068 array( 00069 'type' => 'MassDeleteMenu', 00070 'iconClass' => 'icon-delete', 00071 'listViewGridId' => 'eval:$this->listViewGridId', 00072 'pageVarName' => 'eval:$this->pageVarName' 00073 ), 00074 array( 00075 'type' => 'ExportMenu', 00076 'iconClass' => 'icon-export', 00077 'listViewGridId' => 'eval:$this->listViewGridId', 00078 'pageVarName' => 'eval:$this->pageVarName' 00079 ), 00080 ), 00081 ), 00082 'secondToolbar' => array( 00083 'elements' => array( 00084 array('type' => 'ProductIntroLink', 00085 'iconClass' => 'icon-options', 00086 'panelId' => 'eval:$this->introView->getPanelId()', 00087 'checked' => 'eval:!$this->introView->isIntroViewDismissed()', 00088 'moduleName' => 'eval:$this->introView->getModuleName()', 00089 ), 00090 ), 00091 ), 00092 ), 00093 ); 00094 return $metadata; 00095 } 00096 } 00097 ?>