lib/dmCkEditor.php
/**
   * @param string $page link to the page to update
   * @return void
   */
@param string $page link to the page to update
@return void
@param string $page link to the page to update @return void
protected function updatePage($page)
  {
    $id = str_replace('dmPage-','',$page->id);
    if (!$id || !is_numeric($id))
    {
      return;
    }
    $pageRecord = dmDb::table('DmPage')->findOneByIdWithI18n($id);
    if (!$pageRecord)
    {
      return;
    }
    $url = $this->helper->link($pageRecord)->getHref();
    if ($page->href != $url) 
    {
      $page->href = $url;
    }
  }
protected function updatePage ( $ page ) { $ id = str_replace ( 'dmPage-' , '' , $ page -> id ) ; if ( ! $ id || ! is_numeric ( $ id ) ) { return ; } $ pageRecord = dmDb :: table ( 'DmPage' ) -> findOneByIdWithI18n ( $ id ) ; if ( ! $ pageRecord ) { return ; } $ url = $ this -> helper -> link ( $ pageRecord ) -> getHref ( ) ; if ( $ page -> href != $ url ) { $ page -> href = $ url ; } }
@param string $page link to the page to update
 @return void
@param string $page link to the page to update @return void