当前位置: 首页>>代码示例>>PHP>>正文


PHP Meta::getMeta方法代码示例

本文整理汇总了PHP中Meta::getMeta方法的典型用法代码示例。如果您正苦于以下问题:PHP Meta::getMeta方法的具体用法?PHP Meta::getMeta怎么用?PHP Meta::getMeta使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Meta的用法示例。


在下文中一共展示了Meta::getMeta方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: form

 function form($row = array())
 {
     $oForm = new ConstructForm(&$this->oSmarty, $this->name);
     $itab = 0;
     if (!isset($row['categoryID']) || $row['categoryID'] == 0) {
         $row['categoryID'] = '0';
         $row['parent'] = 'нет';
     } else {
         $parent = DB::query_row("SELECT * FROM `category_tb` WHERE `id` = '" . DB::escape($row['categoryID']) . "'");
         $row['parent'] = $parent['name'];
     }
     $oForm->setField('text', 'parent', 'Родитель', !true, $itab, $row, " id = 'parent' ");
     $oForm->setField('hidden', 'categoryID', '', true, $itab, $row, " id = 'parentIDHidden' ");
     $oForm->setField('text', 'name', 'Категория', true, $itab, $row);
     $oForm->setField('fck', 'description', 'Описание', true, $itab, $row);
     $aArr = $oForm->getField($itab);
     $oForm->setFields($aArr, $itab, "Основные");
     $itab++;
     $oForm->setField('manyphoto', 'img_arr', 'Изображения', !true, $itab, $row, isset($row['id']) ? Photo::getPhoto($row['id'], $this->class_name, $row['main']) : null);
     $aArr = $oForm->getField($itab);
     $oForm->setFields($aArr, $itab, "Изображения");
     $itab++;
     $oForm->setField('text', 'meta_title', 'Title мета', true, $itab, isset($row['id']) ? Meta::getMeta($row['id'], $this->class_name) : array());
     $oForm->setField('text', 'meta_description', 'Description мета', true, $itab, isset($row['id']) ? Meta::getMeta($row['id'], $this->class_name) : array());
     $oForm->setField('text', 'meta_keywords', 'Keywords мета', true, $itab, isset($row['id']) ? Meta::getMeta($row['id'], $this->class_name) : array());
     $aArr = $oForm->getField($itab);
     $oForm->setFields($aArr, $itab, "Мета");
     return $oForm;
 }
开发者ID:belkov,项目名称:o3dshop,代码行数:29,代码来源:Category.php

示例2:

echo $formTemplatesRequest->reviseFormInstance('c8a59b9f-5c7e-e511-bf02-008cfa482110', 'bb6c2903-1383-e511-bf05-9c4e36b08790', ['favLang' => 'now italian', 'favTeam' => 'still Raiders', 'likeCoffeeBlack' => 'claro']);
echo $formTemplatesRequest->embedForm('9d4d2408-1183-e511-bf05-9c4e36b08790', '6ccf5264-4f8d-e511-bf05-9c4e36b08790');
// GROUPS
echo $groupsRequest->getGroups();
echo $groupsRequest->getGroupsId('3b0d5cd7-2c83-e511-bf05-9c4e36b08790');
echo $groupsRequest->getGroupsUsers('10000000-1000-3000-1111-100000000023');
echo $groupsRequest->getGroupsUsersId('10000000-1000-3000-1111-100000000023', '8dd06446-1179-e511-bf01-a1bb68598c42');
echo $groupsRequest->postGroups('phpGroup2', 'a group from php', '8be2a9c6-2c83-e511-bf05-9c4e36b08790');
echo $groupsRequest->putGroups('22dbf0ca-c783-e511-bf05-9c4e36b08790', 'Python Group 2', 'python2');
// INDEX FIELDS
echo $indexFieldsRequest->getIndexFields();
echo $indexFieldsRequest->postIndexFields('favorite foods2', 'a list of favorite foods', 2, '00000000-0000-0000-0000-000000000000', '390A1704-B481-E511-BF03-008CFA482110', true, 'pakistani');
echo $indexFieldsRequest->putIndexFields('0ca8c2ae-3778-e511-bf00-bfff3cb84a46', 'departments list', 'new description', 2, 'd19af16a-3678-e511-bf00-bfff3cb84a46', 'd19af16a-3678-e511-bf00-bfff3cb84a46', true, 'default');
echo $indexFieldsRequest->relateIndexFields('0ca8c2ae-3778-e511-bf00-bfff3cb84a46', '40ac2b37-9a72-e511-befe-98991b71acc0');
// META
echo $metaRequest->getMeta();
echo $metaRequest->getMetaData('PersistedData');
// PARSE
$r = $docRequest->getDocIndexFields('3c7168e7-4b82-e511-bf04-008cfa482110');
$s = $docRequest->getDocIndexFieldsId('3c7168e7-4b82-e511-bf04-008cfa482110', '6684bdbe-4f82-e511-bf04-008cfa482110');
echo $parseRequest->parseResponse($r, 'label');
$a = $parseRequest->parseListResponse($r, 'label', '5');
// PERSISTED DATA
echo $pdataRequest->deletePdata('7832c856-7467-4356-a56e-968f9db56f48');
echo $pdataRequest->getPdata();
echo $pdataRequest->getPdataId('17bd31bb-6cd6-43b0-be65-55e2002d91a6');
echo $pdataRequest->postPdata('phpPDATA4', 1, "{\"DataField2\":\"claro que si\",\"DataField4\":\"oh no no no\"}", 'text/JSON', '', 0, null);
echo $pdataRequest->postFormPdata('9d4d2408-1183-e511-bf05-9c4e36b08790', 'c054e3bb-bd4c-4185-8d45-cf062d369a66', '6ccf5264-4f8d-e511-bf05-9c4e36b08790');
// SITES
echo $sitesRequest->getSites();
echo $sitesRequest->getSitesId('2e2fbf9c-1079-e511-bf01-a1bb68598c42');
开发者ID:VisualVault,项目名称:php-rest-client-library,代码行数:31,代码来源:requests.php


注:本文中的Meta::getMeta方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。