File size: 1.6Kb
<?php
/**
This software is furnished under a license and may be used and copied
only in accordance with the terms of such license and with the
inclusion of the above copyright notice. This software or any other
copies thereof may not be provided or otherwise made available to any
other person. No title to and ownership of the software is hereby
transferred.
You may not reverse engineer, decompile, defeat license encryption
mechanisms, or disassemble this software product or software product
license. AddonsLab may terminate this license if you don't comply with
any of these terms and conditions. In such event, licensee agrees
to return licensor or destroy all copies of software upon termination
of the license.
*/
namespace AddonsLab\Core\Xf2;
interface CrudEntityInterface
{
/**
* @return int|string
* The primary key for the entity being displayed
*/
public function getItemPrimaryKey();
/**
* @return string
* The label used in the list of items
*/
public function getItemListLabel();
public function getItemListHint();
/**
* @return bool If true, the item will be marked as disabled in the list of items
*/
public function getItemIsDisabled();
public function getItemTitle();
/**
* @return array
* Doesn't actually make sense, just a reminder that this method is going to be called and should be defined by child classes
*/
public static function getInputStructure();
}