Version 5.0.6
This commit is contained in:
1 parent
a3a4a9ccbd
commit
b89858b2ff
1214 files changed
+92828
-14859
No files matched your search
@@ -99,11 +99,11 @@ abstract class Comment
|
||||
* Add custom sort options to the content table for this class
|
||||
* @note $comment will ALWAYS be null.
|
||||
*
|
||||
* @param BaseItem|null $comment
|
||||
* @param BaseComment|null $comment
|
||||
* @param Content $table
|
||||
* @return array
|
||||
*/
|
||||
public function contentTableSortOptions( ?BaseItem $comment, Content $table ) : array
|
||||
public function contentTableSortOptions( ?BaseComment $comment, Content $table ) : array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
@@ -114,12 +114,12 @@ abstract class Comment
|
||||
*
|
||||
* @note $comment will ALWAYS be null.
|
||||
*
|
||||
* @param BaseItem|null $comment
|
||||
* @param BaseComment|null $comment
|
||||
* @param Content $table
|
||||
* @param string $sortBy
|
||||
* @return string|null
|
||||
*/
|
||||
public function contentTableSortDirection( ?BaseItem $comment, Content $table, string $sortBy ) : string|null
|
||||
public function contentTableSortDirection( ?BaseComment $comment, Content $table, string $sortBy ) : string|null
|
||||
{
|
||||
return null;
|
||||
}
|
||||
@@ -128,11 +128,11 @@ abstract class Comment
|
||||
* Add custom filters to the content table for this class
|
||||
* @note $comment will ALWAYS be null.
|
||||
*
|
||||
* @param BaseItem|null $comment
|
||||
* @param BaseComment|null $comment
|
||||
* @param Content $table
|
||||
* @return array
|
||||
*/
|
||||
public function contentTableFilters( ?BaseItem $comment, Content $table ) : array
|
||||
public function contentTableFilters( ?BaseComment $comment, Content $table ) : array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
@@ -141,12 +141,26 @@ abstract class Comment
|
||||
* Add custom conditions to the where clause for a content table.
|
||||
* @note $comment will ALWAYS be null.
|
||||
*
|
||||
* @param BaseItem|null $comment
|
||||
* @param BaseComment|null $comment
|
||||
* @param Content $table
|
||||
* @return array
|
||||
*/
|
||||
public function contentTableWhere( ?BaseItem $comment, Content $table ) : array
|
||||
public function contentTableWhere( ?BaseComment $comment, Content $table ) : array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Modify the table rows before output
|
||||
*
|
||||
* @note $comment will always be null
|
||||
* @param BaseComment|null $comment
|
||||
* @param Content $table
|
||||
* @param array $rows
|
||||
* @return void
|
||||
*/
|
||||
public function contentTableGetRows( ?BaseComment $comment, Content $table, array &$rows ) : void
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -152,15 +152,32 @@ abstract class Item
|
||||
}
|
||||
|
||||
/**
|
||||
* Add custom conditions to the where clause for a content table.
|
||||
* Modify the where clause for a content table.
|
||||
* You can change existing where conditions, or add new ones
|
||||
*
|
||||
* @note $item will ALWAYS be null.
|
||||
*
|
||||
* @param BaseItem|null $item
|
||||
* @param Content $table
|
||||
* @return array
|
||||
* @param array $where
|
||||
* @return void
|
||||
*/
|
||||
public function contentTableWhere( ?BaseItem $item, Content $table ) : array
|
||||
public function contentTableWhere( ?BaseItem $item, Content $table, array &$where ) : void
|
||||
{
|
||||
return [];
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Modify the table rows before output
|
||||
*
|
||||
* @note $item will always be null
|
||||
* @param BaseItem|null $item
|
||||
* @param Content $table
|
||||
* @param array $rows
|
||||
* @return void
|
||||
*/
|
||||
public function contentTableGetRows( ?BaseItem $item, Content $table, array &$rows ) : void
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -39,6 +39,18 @@ abstract class MenuExtension
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a total notification count that will be displayed
|
||||
* on the mobile menu. Previously was just a report count,
|
||||
* now this allows for other extensions.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
public function mobileNotificationCount() : int
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Used to add additional content to userbar
|
||||
*
|
||||
@@ -71,4 +83,27 @@ abstract class MenuExtension
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Add items to the Account Actions dropdown in the ACP member view
|
||||
*
|
||||
* @param MemberClass $member
|
||||
* @return array<MenuItem>
|
||||
*/
|
||||
public function acpAccountActionsMenu( MemberClass $member ) : array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Return additional buttons that will be shown on the member list
|
||||
* Buttons should be constructed as an array typically used in ACP tables
|
||||
*
|
||||
* @param MemberClass $member
|
||||
* @return array<string,array>
|
||||
*/
|
||||
public function acpRowButtons( MemberClass $member ) : array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
}
|
||||
@@ -6,6 +6,7 @@ namespace IPS\Output\UI;
|
||||
|
||||
|
||||
use IPS\Helpers\Form\FormAbstract;
|
||||
use IPS\Member\Club;
|
||||
use IPS\Node\Model;
|
||||
|
||||
if ( !defined( '\IPS\SUITE_UNIQUE_KEY' ) )
|
||||
@@ -117,4 +118,45 @@ abstract class Node
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Add elements to the Club Node form
|
||||
* This method returns all elements that will be added.
|
||||
* By default, all elements will be added in order at the end of the form.
|
||||
* To specify placement within the form, @see FormAbstract::setPosition().
|
||||
*
|
||||
* @param Model $node
|
||||
* @param Club $club
|
||||
* @return array<string,FormAbstract>
|
||||
*/
|
||||
public function clubFormElements( Model $node, Club $club ): array
|
||||
{
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Any formatting necessary for custom fields added in clubFormElements
|
||||
*
|
||||
* @param Model $node
|
||||
* @param Club $club
|
||||
* @param array $values
|
||||
* @return array
|
||||
*/
|
||||
public function processClubForm( Model $node, Club $club, array $values ) : array
|
||||
{
|
||||
return $values;
|
||||
}
|
||||
|
||||
/**
|
||||
* Called after the club Node form is saved
|
||||
*
|
||||
* @param Model $node
|
||||
* @param Club $club
|
||||
* @param array $values
|
||||
* @return void
|
||||
*/
|
||||
public function clubFormPostSave( Model $node, Club $club, array $values ): void
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user