/**
  * Get a static reference to the storage object associated with this model object
  *
  * @return controller_soparty the storage object
  */
 public static function get_instance()
 {
     if (self::$so == null) {
         self::$so = CreateObject('controller.soprocedure');
     }
     return self::$so;
 }
 public function __construct()
 {
     parent::__construct();
     $this->so = controller_sodocument::get_instance();
     $this->so_procedure = controller_soprocedure::get_instance();
     $this->read = $GLOBALS['phpgw']->acl->check('.control', PHPGW_ACL_READ, 'controller');
     //1
     $this->add = $GLOBALS['phpgw']->acl->check('.control', PHPGW_ACL_ADD, 'controller');
     //2
     $this->edit = $GLOBALS['phpgw']->acl->check('.control', PHPGW_ACL_EDIT, 'controller');
     //4
     $this->delete = $GLOBALS['phpgw']->acl->check('.control', PHPGW_ACL_DELETE, 'controller');
     //8
 }