Squiz Matrix  4.12.2
 All Data Structures Namespaces Functions Variables Pages
paint_layout_bodycopy_edit_fns.inc
1 <?php
18 require_once SQ_CORE_PACKAGE_PATH.'/bodycopy/bodycopy/bodycopy_edit_fns.inc';
19 
32 {
33 
34 
39  function __construct()
40  {
41  parent::__construct();
42 
43  }//end constructor
44 
45 
57  {
58  $allowed_keywords = Array();
59  $asset->getKeywordsDescription($allowed_keywords, $asset->getAssociatedAssetType());
60  $allowed_keywords = array_keys($allowed_keywords);
61 
62  if ($asset->getAssociatedAssetType() == 'form_submission') {
63  foreach ($allowed_keywords as $idx => $allowed_keyword) {
64  $allowed_keywords[$idx] = preg_replace('/(.*_)(X_qY)$/', '$1', $allowed_keyword);
65  }
66  }
67 
68  $write_access = $asset->writeAccess('attributes');
69  $condition_list = new Conditions_List($asset, 'conditional_keywords');
70  return $condition_list->paintConditionsList($asset, $o, $prefix, $write_access, $allowed_keywords);
71 
72  }//end paintConditionalKeywords()
73 
74 
86  {
87  $allowed_keywords = Array();
88  $asset->getKeywordsDescription($allowed_keywords, $asset->getAssociatedAssetType());
89  $allowed_keywords = array_keys($allowed_keywords);
90 
91  $write_access = $asset->writeAccess('attributes');
92  $condition_list = new Conditions_List($asset, 'conditional_keywords');
93  return $condition_list->processConditionsList($asset, $o, $prefix, $write_access, $allowed_keywords);
94 
95  }//end processConditionalKeywords()
96 
97 
98 }//end class
99 
100 ?>