Exemple #1
0
 protected function shouldProcessMarkdown(dmDoctrineTable $table, $field)
 {
     $key = $table->getComponentName() . '.' . $field;
     if ($this->hasCache($cacheKey = 'should_process_markdown_%s', $key)) {
         return $this->getCache($cacheKey);
     }
     return $this->setCache($cacheKey, $table->hasField($field) && $table->isMarkdownColumn($field));
 }
Exemple #2
0
 protected static function shouldProcessMarkdown(dmDoctrineTable $table, $field)
 {
     $key = $table->getComponentName() . '.' . $field;
     if (isset(self::$shouldProcessMarkdownCache[$key])) {
         return self::$shouldProcessMarkdownCache[$key];
     }
     return self::$shouldProcessMarkdownCache[$key] = $table->hasField($field) && $table->isMarkdownColumn($field);
 }