Example #1
1
 public function recordPageTypeComposerOutputBlock(\Concrete\Core\Block\Block $block)
 {
     $db = Loader::db();
     $setControl = $this->getPageTypeComposerFormLayoutSetControlObject();
     $db->Execute('insert into PageTypeComposerOutputBlocks (cID, arHandle, ptComposerFormLayoutSetControlID, cbDisplayOrder, bID) values (?, ?, ?, ?, ?)', array($block->getBlockCollectionID(), $block->getAreaHandle(), $setControl->getPageTypeComposerFormLayoutSetControlID(), $block->getBlockDisplayOrder(), $block->getBlockID()));
 }
Example #2
0
 public function getBlockDisplayOrder()
 {
     return parent::getBlockDisplayOrder();
 }
 public function recordPageTypeComposerOutputBlock(\Concrete\Core\Block\Block $block)
 {
     $app = Application::getFacadeApplication();
     $db = $app->make('database')->connection();
     $setControl = $this->getPageTypeComposerFormLayoutSetControlObject();
     $db->executeQuery('insert into PageTypeComposerOutputBlocks (cID, arHandle, ptComposerFormLayoutSetControlID, cbDisplayOrder, bID) values (?, ?, ?, ?, ?)', [$block->getBlockCollectionID(), $block->getAreaHandle(), $setControl->getPageTypeComposerFormLayoutSetControlID(), $block->getBlockDisplayOrder(), $block->getBlockID()]);
 }