public function transform($item, $parentObject, $duplicateStrategy)
 {
     $pageChildren = $item->stageChildren();
     // okay, first we'll create the new page item,
     // and map a bunch of child information across
     $newPage = new StandardPage();
     $newPage->Title = $item->Title;
     $newPage->MenuTitle = $item->MenuTitle;
     // what else should we map across?
     $filteredChildren = $item->Children();
     $newPage->Content = $item->Content();
     $newPage->MatrixId = $item->id;
     $newPage->OriginalProperties = json_encode($item->getRemoteProperties());
     $newPage->ParentID = $parentObject->ID;
     $newPage->Sort = 0;
     $newPage->writeToStage('Stage');
     return new TransformResult($newPage, $filteredChildren);
 }
示例#2
0
文件: template.php 项目: roblav/ARC
<?php

include "lib/stdlib.php";
$page = new StandardPage("Who can I turn to for help?", "none");
$page->PrintHeader();
?>

<div id="sideColumn">

</div>
<!--END sideColumn -->

<div id="contentColumn">

<h1>Who is Mr Filby..?</h1>

<p>Mr Filby is a vibrant logistics company offering specialist support to the publishing and field marketing industries. We?re good, very good in fact. Indeed our ability to get a job done to the highest standard is only exceeded by our humility?</p>
        <p>We have a strong traditional and honest working ethos which incorporates the latest technology and reporting methods. Our expert knowledge of the logistics industry provides our clients with the confidence that the job will not only be done but also completed to the highest possible standards.  </p>
        <p>We have a national fleet of vehicles and network of 30,000 sq ft warehouses throughout the UK. This combined with our fulfilment services presents clients with a complete solution to their logistical needs.</p>
        <p>Please take a few moments to have a look around our website and don?t hesitate to <a href="contact-us.htm" title="Contact Us">get in touch</a>.</p>
</div>

<!--END contentColumn -->

<?php 
$page->PrintFooter();
?>


示例#3
0
 public function __construct($args)
 {
     parent::__construct($args);
     import('trouble.agent');
 }