55 $this->ContentAccess =
get_package(
'content::content_access' ,
'last' , __FILE__ );
56 $this->Security =
get_package(
'security' ,
'last' , __FILE__ );
90 $id = $this->Security->get( $id ,
'integer' );
92 $Records = $this->ContentAccess->unsafe_select( $this->ContentAccess->NativeTable.
".id = $id" );
94 return( count( $Records ) === 1 );
128 $id = $this->Security->get( $id ,
'integer' );
130 $Records = $this->ContentAccess->unsafe_select( $this->ContentAccess->NativeTable.
".id = $id" );
132 if( count( $Records ) == 0 )
134 throw(
new Exception(
'Record was not found' ) );
137 return( $Records[ 0 ] );
139 catch( Exception $e )