Jump to content
Дизайн и модификация IPS Community IPBSkinsBETA
Search In
  • More options...
Find results that contain...
Find results in...
Sign in to follow this  

Несколько бейджиков в get__badge

Recommended Posts

Здравствуйте, как вернуть несколько зеленых бейджиков?


protected function get__badge()
	$mapcfg_name = iterator_to_array( \IPS\Db::i()->select( 'mapcfg_name', \IPS\wc3\Mapcfg::$databaseTable, array( 'map_id=?', $this->id )) );

	if ($mapcfg_name) {
		$badge = array( 0 => 'positive ipsPos_right', 1 => implode(', ', $mapcfg_name) );
		$badge = NULL;

	return $badge;


Чтобы оно не через запятую было, а разными бейджиками: http://prntscr.com/nhlyoo

Edited by TemKa_SD

Share this post

Link to post

get__badge - 1 бейдж.


Можете реализовать метод

 * Fetch any additional HTML for this row
 * @param	object	$node	Node returned from $nodeClass::load()
 * @return	NULL|string
public function _getRowHtml( $node )
	return NULL;

  • Upvote 1

Share this post

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...