tao-test/app/generis/core/kernel/persistence/interface.PropertyInterface.php

114 lines
3.4 KiB
PHP

<?php
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; under version 2
* of the License (non-upgradable).
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Copyright (c) 2009-2012 (original work) Public Research Centre Henri Tudor (under the project TAO-SUSTAIN & TAO-DEV);
*
*
*/
/**
* Short description of class core_kernel_persistence_PropertyInterface
*
* @access public
* @author Jerome Bogaerts, <jerome.bogaerts@tudor.lu>
* @package generis
*/
interface core_kernel_persistence_PropertyInterface
{
/**
* Short description of method isLgDependent
*
* @access public
* @author Jerome Bogaerts, <jerome.bogaerts@tudor.lu>
* @param Resource resource
* @return boolean
*/
public function isLgDependent(core_kernel_classes_Resource $resource);
/**
* Short description of method isMultiple
*
* @access public
* @author Jerome Bogaerts, <jerome.bogaerts@tudor.lu>
* @param Resource resource
* @return boolean
*/
public function isMultiple(core_kernel_classes_Resource $resource);
/**
* Short description of method getRange
*
* @access public
* @author Jerome Bogaerts, <jerome.bogaerts@tudor.lu>
* @param Resource resource
* @return core_kernel_classes_Class
*/
public function getRange(core_kernel_classes_Resource $resource);
/**
* Short description of method delete
*
* @access public
* @author Jerome Bogaerts, <jerome.bogaerts@tudor.lu>
* @param Resource resource
* @param boolean deleteReference
* @return boolean
*/
public function delete(core_kernel_classes_Resource $resource, $deleteReference = false);
/**
* Short description of method setRange
*
* @access public
* @author Jerome Bogaerts, <jerome.bogaerts@tudor.lu>
* @param Resource resource
* @param Class class
* @return core_kernel_classes_Class
*/
public function setRange(core_kernel_classes_Resource $resource, core_kernel_classes_Class $class);
public function setDependsOnProperty(
core_kernel_classes_Resource $resource,
core_kernel_classes_Property $property
): void;
/**
* Short description of method setMultiple
*
* @access public
* @author Jerome Bogaerts, <jerome.bogaerts@tudor.lu>
* @param Resource resource
* @param boolean isMultiple
* @return void
*/
public function setMultiple(core_kernel_classes_Resource $resource, $isMultiple);
/**
* Short description of method setLgDependent
*
* @access public
* @author Jerome Bogaerts, <jerome.bogaerts@tudor.lu>
* @param Resource resource
* @param boolean isLgDependent
* @return void
*/
public function setLgDependent(core_kernel_classes_Resource $resource, $isLgDependent);
} /* end of interface core_kernel_persistence_PropertyInterface */