00001 <?php 00002 00003 class views_test_plugin_access_test_static extends views_plugin_access { 00004 function option_definition() { 00005 $options = parent::option_definition(); 00006 $options['access'] = array('default' => FALSE); 00007 00008 return $options; 00009 } 00010 00011 function access($account) { 00012 return !empty($this->options['access']); 00013 } 00014 00015 function get_access_callback() { 00016 return array('views_test_test_static_access_callback', array(!empty($options['access']))); 00017 } 00018 }