public function valid()
 {
     // opposite of parents "Single Exists"
     return !parent::valid();
 }
Example #2
0
 private static function get_post_template_file()
 {
     $helper = new Types_Helper_Condition_Single_Exists();
     return basename($helper->find_template());
 }
Example #3
0
 private static function get_post_template_file()
 {
     if (self::$post_type_template_file === null) {
         $helper = new Types_Helper_Condition_Single_Exists();
         self::$post_type_template_file = basename($helper->find_template());
     }
     return self::$post_type_template_file;
 }