framework/Base/Plugin.php
private function describeActions($action = "") {

		if (!empty($action)) {
			$parts = explode('_', $action);
			unset($parts[0]);
			$parts = array_values($parts);

			$act = new \stdClass();

			$act->method = $action;

			switch (count($parts)) {
			case 1:
			case 2:
			case 3:
				$act->name = $parts[0];
			case 2:
			case 3:
				$act->tag = $parts[1];
			case 3:
				$act->priority = intval($parts[2]);
				break;
			}
			if (count($parts) == 1) {
				$act->tag = 'initi';
				$act->priority = 10;
			}

			return $act;

		}
		return null;
	}
private function describeActions($action = "") {

		if (!empty($action)) {
			$parts = explode('_', $action);
			unset($parts[0]);
			$parts = array_values($parts);

			$act = new \stdClass();

			$act->method = $action;

			switch (count($parts)) {
			case 1:
			case 2:
			case 3:
				$act->name = $parts[0];
			case 2:
			case 3:
				$act->tag = $parts[1];
			case 3:
				$act->priority = intval($parts[2]);
				break;
			}
			if (count($parts) == 1) {
				$act->tag = 'initi';
				$act->priority = 10;
			}

			return $act;

		}
		return null;
	}
private function describeActions ( $ action = "" ) { if ( ! empty ( $ action ) ) { $ parts = explode ( '_' , $ action ) ; unset ( $ parts [ 0 ] ) ; $ parts = array_values ( $ parts ) ; $ act = new \ stdClass ( ) ; $ act -> method = $ action ; switch ( count ( $ parts ) ) { case 1 : case 2 : case 3 : $ act -> name = $ parts [ 0 ] ; case 2 : case 3 : $ act -> tag = $ parts [ 1 ] ; case 3 : $ act -> priority = intval ( $ parts [ 2 ] ) ; break ; } if ( count ( $ parts ) == 1 ) { $ act -> tag = 'initi' ; $ act -> priority = 10 ; } return $ act ; } return null ; }
Descrive una accion para el nombre del metodo de la accion resibido
@param  string $action Nombre o metodo de la accion
@return stdClass
{
"method": "action_postypes_init_10"
"name": "postypes"
"tag": "init"
"priority": 10
}
Descrive una accion para el nombre del metodo de la accion resibido