Jump to content

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


TemKa_SD
 Share

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) );
	}
	else
	{
		$badge = NULL;
	}

	return $badge;
}

 

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

Edited by TemKa_SD
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...